feat: migrate monthly city trade rates

This commit is contained in:
2026-07-25 16:16:10 +00:00
parent f8bd3b4138
commit f8645a4576
12 changed files with 320 additions and 17 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ model City {
security Int @map("secu")
securityMax Int @map("secu_max")
trust Int @default(0)
trade Int @default(100)
trade Int? @default(100)
defence Int @map("def")
defenceMax Int @map("def_max")
wall Int @map("wall")
@@ -0,0 +1,2 @@
ALTER TABLE "city"
ALTER COLUMN "trade" DROP NOT NULL;
+2 -2
View File
@@ -75,7 +75,7 @@ export interface TurnEngineCityRow {
conflict: JsonValue;
meta: JsonValue;
trust: number;
trade: number;
trade: number | null;
region: number;
}
@@ -241,7 +241,7 @@ export interface TurnEngineCityUpdateInput {
conflict?: InputJsonValue;
meta: InputJsonValue;
trust?: number;
trade?: number;
trade?: number | null;
region?: number;
}