feat: Added verify account route, closes #28
This commit is contained in:
@@ -21,4 +21,11 @@ const userSchema = new Schema({
|
||||
]
|
||||
})
|
||||
|
||||
const whitelistSchema = new Schema({
|
||||
uuid: { type: String, required: true, unique: true },
|
||||
connected: { type: Boolean, required: true, default: false },
|
||||
code: { type: String, required: true, unique: true, length: 6 }
|
||||
})
|
||||
|
||||
export const UserModel = model<IUser>('User', userSchema)
|
||||
export const WhitelistModel = model<IWhitelist>('Whitelist', whitelistSchema)
|
||||
|
Reference in New Issue
Block a user