mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
Много
This commit is contained in:
@@ -13,13 +13,22 @@ datasource db {
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model user {
|
||||
id String @id @map("_id") @db.ObjectId
|
||||
enum UserRole {
|
||||
STUDENT
|
||||
TEACHER
|
||||
ADMIN
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @map("_id") @db.ObjectId
|
||||
//
|
||||
username String @unique
|
||||
username String @unique
|
||||
//
|
||||
salt String
|
||||
password String
|
||||
//
|
||||
accessToken String @unique
|
||||
accessToken String @unique
|
||||
//
|
||||
group String
|
||||
role UserRole
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user