2 provider = "prisma-client-js"
6 provider = "postgresql"
7 url = env("DATABASE_URL")
24 id String @id @default(uuid()) @db.Uuid
26 playerId String? @db.Uuid
28 maxSteps Int @default(500)
32 id String @id @default(uuid()) @db.Uuid
33 username String @unique
36 currency Int @default(0)
45 statPoints Int @default(0)
47 zoneBiome ZoneBiomes @relation(fields: [zoneBiomeId], references: [id])
48 zoneBiomeId String @db.Uuid
54 token String @id @default(uuid()) @db.Uuid
55 player Player @relation(fields: [playerId], references: [id])
56 playerId String @db.Uuid
57 createdAt DateTime @default(now())
58 updatedAt DateTime? @updatedAt
71 id String @id @default(uuid()) @db.Uuid
73 monsterType MonsterType[]
74 monsterBiomes MonsterBiome[]
78 monster Monster @relation(fields: [monsterId], references: [id])
79 monsterId String @db.Uuid
83 @@id([monsterId, biome])
87 id String @id @default(uuid()) @db.Uuid
88 playerId String? @db.Uuid
89 monsterId String @db.Uuid