mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
48 lines
848 B
Plaintext
48 lines
848 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 = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
enum UserRole {
|
|
STUDENT
|
|
TEACHER
|
|
ADMIN
|
|
}
|
|
|
|
model FCM {
|
|
token String
|
|
topics String[]
|
|
|
|
user User @relation(fields: [userId], references: [id])
|
|
userId String @unique
|
|
}
|
|
|
|
model User {
|
|
id String @id
|
|
//
|
|
username String @unique
|
|
//
|
|
password String
|
|
//
|
|
vkId Int?
|
|
//
|
|
accessToken String @unique
|
|
//
|
|
group String
|
|
role UserRole
|
|
//
|
|
fcm FCM?
|
|
//
|
|
version String
|
|
}
|