Update: User.controller & User.model
This commit is contained in:
parent
a70574a8e2
commit
47df4a1d23
2 changed files with 28 additions and 21 deletions
|
|
@ -34,7 +34,10 @@ module.exports = mongoose => {
|
|||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
lastConnexion: Date
|
||||
lastConnexion: {
|
||||
type: Date,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
|
|
|||
Reference in a new issue