Spaces:
Sleeping
Sleeping
Download prisma/schema.prisma from eneeyan/iqmath-backend-api: direct link, hf CLI and curl.
- Browser
- Download file 4.25 kB
-
https://huggingface.co/spaces/eneeyan/iqmath-backend-api/resolve/main/prisma/schema.prisma
- Command line
-
hf download hf://spaces/eneeyan/iqmath-backend-api/prisma/schema.prisma
-
curl -L -o schema.prisma https://huggingface.co/spaces/eneeyan/iqmath-backend-api/resolve/main/prisma/schema.prisma
4.25 kB
| generator client { | |
| provider = "prisma-client-js" | |
| } | |
| datasource db { | |
| provider = "mysql" | |
| url = env("DATABASE_URL") | |
| } | |
| enum UserRole { | |
| ADMIN | |
| STUDENT | |
| MENTOR | |
| CORPORATE_CLIENT | |
| COLLEGE_ADMIN | |
| } | |
| model User { | |
| id String | |
| email String | |
| name String | |
| passwordHash String? | |
| role UserRole | |
| googleId String? | |
| createdAt DateTime | |
| updatedAt DateTime | |
| studentProfile Student? | |
| mentorProfile Mentor? | |
| examSessions ExamSession[] | |
| submissions CodingSubmission[] | |
| trainingPrograms TrainingProgram[] | |
| } | |
| model Student { | |
| id String | |
| userId String | |
| country String | |
| institution String? | |
| createdAt DateTime | |
| user User | |
| } | |
| model Mentor { | |
| id String | |
| userId String | |
| expertise String | |
| bio String? | |
| createdAt DateTime | |
| user User | |
| } | |
| model Course { | |
| id String | |
| title String | |
| description String | |
| isActive Boolean | |
| createdAt DateTime | |
| lessons Lesson[] | |
| assignments Assignment[] | |
| } | |
| model Lesson { | |
| id String | |
| title String | |
| content String | |
| courseId String | |
| createdAt DateTime | |
| course Course | |
| } | |
| model Assignment { | |
| id String | |
| title String | |
| description String | |
| dueDate DateTime? | |
| courseId String | |
| createdAt DateTime | |
| course Course | |
| } | |
| model Product { | |
| id String | |
| name String | |
| description String | |
| isLive Boolean | |
| createdAt DateTime | |
| } | |
| model CorporateClient { | |
| id String | |
| name String | |
| country String | |
| contactName String? | |
| contactEmail String? | |
| createdAt DateTime | |
| } | |
| model College { | |
| id String | |
| name String | |
| country String | |
| city String? | |
| createdAt DateTime | |
| } | |
| model Certificate { | |
| id String | |
| title String | |
| issuedTo String | |
| programName String | |
| issuedAt DateTime | |
| createdAt DateTime | |
| } | |
| model CountryUsage { | |
| id String | |
| country String | |
| activeUsers Int | |
| activeCourses Int | |
| revenueINR Int | |
| updatedAt DateTime | |
| } | |
| model TrainingProgram { | |
| id String | |
| title String | |
| type String | |
| country String | |
| participants Int | |
| ownerId String? | |
| createdAt DateTime | |
| owner User? | |
| } | |
| model ExamSession { | |
| id String | |
| userId String | |
| examName String | |
| suspiciousScore Int | |
| tabSwitchCount Int | |
| faceMismatchCount Int | |
| startedAt DateTime | |
| endedAt DateTime? | |
| user User | |
| } | |
| model CodingSubmission { | |
| id String | |
| userId String | |
| language String | |
| sourceCode String | |
| passedTests Int | |
| totalTests Int | |
| leaderboardRank Int? | |
| createdAt DateTime | |
| user User | |
| } | |