mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
- 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
51 lines
904 B
Plaintext
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
|
|
}
|