Spaces:
Sleeping
Sleeping
| generator client { | |
| provider = "prisma-client-py" | |
| } | |
| datasource db { | |
| provider = "mongodb" | |
| url = env("MONGO_CONNECTION_STRING") | |
| } | |
| model User { | |
| id String .ObjectId | |
| email String | |
| password String | |
| fullName String? | |
| createdAt DateTime | |
| updatedAt DateTime | |
| sessions Session[] | |
| streaks Int | |
| xp Int | |
| aiWordCount Int | |
| } | |
| model Session { | |
| id String .ObjectId | |
| userId String .ObjectId | |
| user User | |
| mode String // interview, learning, shark, zen_master | |
| createdAt DateTime | |
| duration Int? // in seconds | |
| // Analytics | |
| wpm Float? | |
| fillerWords Int? | |
| confidence Float? // Average confidence | |
| confidenceScores Float[] // Array of confidence scores over time for the graph | |
| // Transcripts & Analysis | |
| transcript String? // Plain text | |
| transcriptJson Json? // Structured data (speaker, timestamp, analysis) | |
| feedback String? // General feedback | |
| feedbacks Feedback[] | |
| } | |
| model Feedback { | |
| id String .ObjectId | |
| sessionId String .ObjectId | |
| session Session | |
| type String // weakness, strength, tip | |
| content String | |
| } | |