generator client { provider = "prisma-client-js" } datasource db { provider = "sqlite" url = "file:./dev.db" } model Game { key String @id createdAt DateTime @default(now()) updatedAt DateTime @updatedAt name String rules String? instances Instance[] } model Human { key String @id @default(cuid(2)) name String @default("") Instance Instance[] } model Instance { id String @id @default(cuid(2)) createdByKey String createdBy Human @relation(fields: [createdByKey], references: [key]) gameKey String game Game @relation(fields: [gameKey], references: [key]) gameState Json }