feat: add troop model and integrate troop handling in game logic
This commit is contained in:
1 parent
648d186428
commit
519a0a76cb
12 files changed
+188
-14
No files matched your search
@@ -147,6 +147,14 @@ model General {
|
||||
@@map("general")
|
||||
}
|
||||
|
||||
model Troop {
|
||||
troopLeaderId Int @id @map("troop_leader")
|
||||
nationId Int @map("nation")
|
||||
name String
|
||||
|
||||
@@map("troop")
|
||||
}
|
||||
|
||||
model GeneralTurn {
|
||||
id Int @id @default(autoincrement())
|
||||
generalId Int @map("general_id")
|
||||
|
||||
Reference in new issue
Block a user