mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
backend: auth, check, guest, creation
This commit is contained in:
parent
c456f938b1
commit
6f6e6ae6d7
2 changed files with 15 additions and 5 deletions
|
@ -4,7 +4,11 @@ const { Schema } = mongoose;
|
|||
// Schemas
|
||||
const UserSchema = new Schema({
|
||||
id: { type: String, required: true },
|
||||
role: { type: String, required: true },
|
||||
role: {
|
||||
type: String,
|
||||
required: true,
|
||||
enum: ['admin', 'guest', 'user', 'vk'],
|
||||
},
|
||||
token: { type: String, required: true },
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue