mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
Переход на postgres
This commit is contained in:
@@ -9,29 +9,26 @@ generator client {
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "mongodb"
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model ScheduleReplace {
|
||||
id String @id @default(auto()) @map("_id") @db.ObjectId
|
||||
etag String @unique
|
||||
data Bytes
|
||||
}
|
||||
|
||||
enum UserRole {
|
||||
STUDENT
|
||||
TEACHER
|
||||
ADMIN
|
||||
}
|
||||
|
||||
type FCM {
|
||||
model FCM {
|
||||
token String
|
||||
topics String[]
|
||||
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
userId String @unique
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @map("_id") @db.ObjectId
|
||||
id String @id
|
||||
//
|
||||
username String @unique
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user