Skip to content

Commit

Permalink
add defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
SamratSahoo committed Oct 16, 2024
1 parent b224a46 commit 029d3ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/server/mongodb/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ const UserSchema = new mongoose.Schema<User>({
annualPetVisitDay: {
type: Date,
required: true,
default: Date.now()
},
address: {
type: String,
required: true,
default: ""
},
firebaseUid: {
type: String,
Expand Down

0 comments on commit 029d3ec

Please sign in to comment.