add total to zone
Some checks failed
backend-action / build-image (push) Failing after 10m40s

This commit is contained in:
2024-05-20 15:26:18 +07:00
parent 4934f799f5
commit 98a65043c9
10 changed files with 661 additions and 6 deletions

View File

@@ -118,6 +118,7 @@ export const zone = sqliteTable(
province: integer("province_id")
.notNull()
.references(() => province.id),
total: integer("total").notNull().default(0),
},
(t) => ({ unique_name_province: unique().on(t.name, t.province) }),
);