Skip to content

Commit

Permalink
user-model fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ritacatuxo committed Mar 4, 2024
1 parent 6812bd1 commit 3830ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions users/userservice/user-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const userSchema = new mongoose.Schema({
username: {
type: String,
required: true,
unique: true
},
password: {
type: String,
Expand All @@ -16,8 +15,7 @@ const userSchema = new mongoose.Schema({
},
email: {
type: String,
required: true,
unique: true
required: true
},
questions_answered: {
type: Number,
Expand All @@ -28,6 +26,8 @@ const userSchema = new mongoose.Schema({
required: false,
}




});

Expand Down

0 comments on commit 3830ab9

Please sign in to comment.