diff --git a/game/groupservice/group-model.js b/game/groupservice/group-model.js index 64c70a2..c404eb5 100644 --- a/game/groupservice/group-model.js +++ b/game/groupservice/group-model.js @@ -3,7 +3,8 @@ const mongoose = require('mongoose'); // TODO: HACER AQUI LA ENTIDAD GRUPO const groupSchema = new mongoose.Schema({ - // ... + groupName: String, + numberOfMembers: int }); const Group = mongoose.model('Group', groupSchema); diff --git a/users/authservice/auth-model.js b/users/authservice/auth-model.js index 7763b51..57f9ada 100644 --- a/users/authservice/auth-model.js +++ b/users/authservice/auth-model.js @@ -4,6 +4,7 @@ const userSchema = new mongoose.Schema({ username: String, password: String, createdAt: Date, + groupName: String }); const User = mongoose.model('User', userSchema);