mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
35 lines
681 B
Plaintext
35 lines
681 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "mongodb"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
enum UserRole {
|
|
STUDENT
|
|
TEACHER
|
|
ADMIN
|
|
}
|
|
|
|
model User {
|
|
id String @id @map("_id") @db.ObjectId
|
|
//
|
|
username String @unique
|
|
//
|
|
salt String
|
|
password String
|
|
//
|
|
accessToken String @unique
|
|
//
|
|
group String
|
|
role UserRole
|
|
}
|