aboutsummaryrefslogtreecommitdiffstats
path: root/backend/schema.prisma
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-29 23:55:33 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-29 23:55:33 -0700
commit722df5105c098f404e09e884a817acf92d939648 (patch)
tree2644c1921a66279a497fcf69fd778925b37993fb /backend/schema.prisma
parenteda5691cfcb3be0bb6ccf1b2ad4fa92801ad86c4 (diff)
add route to list supported games
Diffstat (limited to 'backend/schema.prisma')
-rw-r--r--backend/schema.prisma11
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])
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage