mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
backend: initial log in dialog
This commit is contained in:
parent
6f6e6ae6d7
commit
8bba2ff1ba
8 changed files with 83 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue