Files
schedule-parser-next/prisma/schema.prisma
N08I40K 50325c3862 3.0.0.
- Updated package version to 3.0.0
- Improved FCM topic handling logic
- Enhanced schedule parser accuracy
- Removed HTTPS options for dev simplicity
- Added detailed API documentation
- Removed support for older api versions
2025-01-25 22:51:33 +04:00

51 lines
904 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")
}
model ScheduleReplace {
id String @id @default(auto()) @map("_id") @db.ObjectId
etag String @unique
data Bytes
}
enum UserRole {
STUDENT
TEACHER
ADMIN
}
type FCM {
token String
topics String[]
}
model User {
id String @id @map("_id") @db.ObjectId
//
username String @unique
//
password String
//
vkId Int?
//
accessToken String @unique
//
group String
role UserRole
//
fcm FCM?
//
version String
}