Skip to content

Commit

Permalink
Modificado user model para incluir histórico de participación de usua…
Browse files Browse the repository at this point in the history
…rio.
  • Loading branch information
UO289659 committed Mar 6, 2024
1 parent 8547633 commit 6a67e87
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions users/userservice/user-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ const userSchema = new mongoose.Schema({
type: Date,
default: Date.now,
},
gamesPlayed:{ //Añadido para guardar las partidas en la bbdd
type: Number,
},
rigthAnswers:{
type:Number,
},
wrongAnswers:{
type:Number,
},

});

const User = mongoose.model('User', userSchema);
Expand Down

0 comments on commit 6a67e87

Please sign in to comment.