Files
schedule-parser-next/prisma/schema.prisma
N08I40K 1174f61487 Refactor and reorganize codebase for better maintainability and clarity
- Rename DTOs to entities and move them to appropriate directories
- Remove deprecated controllers and services
- Update imports and dependencies
- Implement new class transformer decorators for better serialization
- Add VK authentication support
- Improve error handling and validation
- Update ESLint configuration and TypeScript settings
- Refactor schedule parsing logic
- Enhance user and authentication services
- Update Prisma schema and related entities
- Improve code organization and structure

This commit introduces significant changes to improve the overall structure and maintainability of the codebase, including better organization of DTOs, enhanced authentication features, and updated tooling configurations.
2025-01-25 03:36:58 +04:00

51 lines
900 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
//
password String
//
vkId Int?
//
accessToken String @unique
//
group String
role UserRole
//
fcm FCM?
//
version String
}