X-Git-Url: https://git.xangelo.ca/?p=sketchy-heroes.git;a=blobdiff_plain;f=prisma%2Fschema.prisma;fp=prisma%2Fschema.prisma;h=8cf0df23b6ffd09abeb664c7873253bb27d4dba6;hp=e2b4ce01b9dae7d425224d956369489cd10d0ed1;hb=7aa7248bc4f3f59a002beb98fa889a9da3c25866;hpb=9cec2c639563092ed050716db1e7e4657f937bf5 diff --git a/prisma/schema.prisma b/prisma/schema.prisma index e2b4ce0..8cf0df2 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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 +}