diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-29 23:55:33 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-29 23:55:33 -0700 |
| commit | 722df5105c098f404e09e884a817acf92d939648 (patch) | |
| tree | 2644c1921a66279a497fcf69fd778925b37993fb /backend/schema.prisma | |
| parent | eda5691cfcb3be0bb6ccf1b2ad4fa92801ad86c4 (diff) | |
add route to list supported games
Diffstat (limited to 'backend/schema.prisma')
| -rw-r--r-- | backend/schema.prisma | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/backend/schema.prisma b/backend/schema.prisma index 88a131f..3b91f85 100644 --- a/backend/schema.prisma +++ b/backend/schema.prisma @@ -26,16 +26,17 @@ model Session { } model Game { - id Int @id @default(autoincrement()) - name String @unique + internalName String @id + formattedName String + description String scores Score[] } model Score { id Int @id @default(autoincrement()) - gameId Int + gameInternalName String userId Int - data Json // arbitrary data in json format - game Game @relation(fields: [gameId], references: [id]) + data Json + game Game @relation(fields: [gameInternalName], references: [internalName]) user User @relation(fields: [userId], references: [id]) } |
