backend: initial log in dialog

This commit is contained in:
muerwre 2018-11-29 18:38:46 +07:00
parent 6f6e6ae6d7
commit 8bba2ff1ba
8 changed files with 83 additions and 7 deletions

View file

@ -10,6 +10,11 @@ const UserSchema = new Schema({
enum: ['admin', 'guest', 'user', 'vk'],
},
token: { type: String, required: true },
created_at: { type: Date, required: true, default: Date.now },
first_name: { type: String },
last_name: { type: String },
photo: { type: String },
});
const User = mongoose.model('User', UserSchema);