Files
schedule-parser-next/prisma/schema.prisma
n08i40k 2efceeaec4 1.3.1
Уведомления об обновлении приложения.
2024-10-06 02:43:13 +04:00

50 lines
897 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 Json
}
model User {
id String @id @map("_id") @db.ObjectId
//
username String @unique
//
salt String
password String
//
accessToken String @unique
//
group String
role UserRole
//
fcm FCM?
//
version String
}