Download prisma/schema.prisma from NAP1320/RotNot: direct link, hf CLI and curl.
- Browser
- Download file 5.09 kB
-
https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/prisma/schema.prisma
- Command line
-
hf download hf://spaces/NAP1320/RotNot/prisma/schema.prisma
-
curl -L -o schema.prisma https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/prisma/schema.prisma
5.09 kB
| generator client { | |
| provider = "prisma-client-js" | |
| } | |
| datasource db { | |
| provider = "sqlite" | |
| } | |
| model User { | |
| id Int | |
| name String | |
| level Int | |
| totalXp Int | |
| currentXp Int | |
| xpToNextLevel Int | |
| title String | |
| dailyGoalXp Int | |
| streak Int | |
| longestStreak Int | |
| streakFreezes Int | |
| lichessUsername String? | |
| chesscomUsername String? | |
| createdAt DateTime | |
| activities Activity[] | |
| dailyLogs DailyLog[] | |
| categorySkills CategorySkill[] | |
| unlocks Unlock[] | |
| spacedRepetitionItems SpacedRepetitionItem[] | |
| } | |
| model CategorySkill { | |
| id Int | |
| userId Int | |
| category String | |
| level Int | |
| totalXp Int | |
| currentXp Int | |
| xpToNext Int | |
| user User | |
| @ | |
| } | |
| model Activity { | |
| id Int | |
| userId Int | |
| category String | |
| exerciseType String | |
| description String | |
| baseXp Int | |
| qualityBonus Int | |
| isCriticalHit Boolean | |
| totalXp Int | |
| score Float? | |
| durationSecs Int? | |
| metadata String? | |
| createdAt DateTime | |
| user User | |
| } | |
| model DailyLog { | |
| id Int | |
| userId Int | |
| date DateTime | |
| xpEarned Int | |
| activityCount Int | |
| goalMet Boolean | |
| streakFreezeUsed Boolean | |
| user User | |
| @ | |
| } | |
| model SkillTreeNode { | |
| id Int | |
| category String | |
| name String | |
| description String | |
| levelRequired Int | |
| parentNodeId Int? | |
| nodeType String | |
| parent SkillTreeNode? | |
| children SkillTreeNode[] | |
| unlocks Unlock[] | |
| @ | |
| } | |
| model Unlock { | |
| id Int | |
| userId Int | |
| nodeId Int | |
| unlockedAt DateTime | |
| user User | |
| node SkillTreeNode | |
| @ | |
| } | |
| model ContentItem { | |
| id Int | |
| category String | |
| title String | |
| content String | |
| difficulty String | |
| domain String | |
| source String | |
| metadata String? | |
| createdAt DateTime | |
| } | |
| model TopicSource { | |
| id Int | |
| topicId String // matches Topic.id from feynman/topics.ts | |
| url String // source URL | |
| title String // source page/article title | |
| excerpt String // relevant excerpt from the source | |
| domain String // e.g., "wikipedia", "openstax", "arxiv" | |
| license String // e.g., "CC BY-SA 4.0", "CC0", "public-domain" | |
| confidence String // "high", "moderate", "low" | |
| verifiedAt DateTime? // when URL was last verified as live | |
| createdAt DateTime | |
| @ | |
| } | |
| model TeachingCache { | |
| id Int | |
| topicId String // one cached teaching per topic | |
| content String // the grounded teaching explanation (markdown) | |
| sourcesJson String // JSON array of { url, title, domain, license } used | |
| confidenceScore String // "high" (2+ corroborating), "moderate" (1), "low" (extrapolated) | |
| generatedAt DateTime | |
| verifiedAt DateTime? // when content was last verified against sources | |
| @ | |
| } | |
| model SpacedRepetitionItem { | |
| id Int | |
| userId Int | |
| category String | |
| topicId String // matches Topic.id from feynman/topics.ts | |
| topic String // human-readable topic name | |
| domain String | |
| difficulty String // beginner | intermediate | expert | |
| stage Int // 0=new, 1-5 = review stages | |
| nextReviewAt DateTime // when the next review is due | |
| lastReviewAt DateTime? // when last reviewed (null = never reviewed yet) | |
| lastScore Float? // score from most recent review (0-1) | |
| totalReviews Int | |
| successCount Int // reviews scoring >= 0.6 | |
| createdAt DateTime | |
| user User | |
| @ | |
| @ | |
| @ | |
| } | |