From 722df5105c098f404e09e884a817acf92d939648 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 29 Jun 2025 23:55:33 -0700 Subject: add route to list supported games --- backend/schema.prisma | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'backend/schema.prisma') 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]) } -- cgit v1.2.3