Skip to content

Commit

Permalink
Group Entity Fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel-Estape-Fernandez committed Feb 26, 2024
1 parent 06554a7 commit 98844b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game/groupservice/group-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions users/authservice/auth-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const userSchema = new mongoose.Schema({
username: String,
password: String,
createdAt: Date,
groupName: String
});

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

0 comments on commit 98844b1

Please sign in to comment.