exploring/fighting is functional
[sketchy-heroes.git] / prisma / schema.prisma
index e2b4ce01b9dae7d425224d956369489cd10d0ed1..8cf0df23b6ffd09abeb664c7873253bb27d4dba6 100644 (file)
@@ -58,3 +58,45 @@ model AuthToken {
   updatedAt  DateTime?   @updatedAt
 }
 
+enum MonsterType {
+  BEAST
+  FLYING
+  HUMANOID
+  GIANT
+  INSECT
+  UNDEAD
+}
+
+model Monster {
+  id String @id @default(uuid()) @db.Uuid
+  name String @unique
+  monsterType MonsterType[]
+  monsterBiomes MonsterBiome[]
+}
+
+model MonsterBiome {
+  monster Monster @relation(fields: [monsterId], references: [id])
+  monsterId String @db.Uuid
+  biome Biome
+  weight Decimal
+  time Json
+  @@id([monsterId, biome])
+}
+
+model Fight {
+  id String @id @default(uuid()) @db.Uuid
+  playerId String? @db.Uuid
+  monsterId String @db.Uuid
+  name String
+  type MonsterType[]
+  level Int
+  currency Int
+  pow         Int
+  zest        Int
+  woosh       Int
+  luck        Int
+  aha         Int
+  wow         Int
+  hp          Int
+  exp          Int
+}