fix(park):完成园区部分的数据库迁移调整。

This commit is contained in:
徐涛
2022-09-19 11:24:18 +08:00
parent a9f93d5239
commit 1e04922cee
3 changed files with 6 additions and 6 deletions

View File

@@ -31,8 +31,8 @@ type Park struct {
Area decimal.NullDecimal `json:"area"`
TenementQuantity decimal.NullDecimal `json:"tenement"`
Capacity decimal.NullDecimal `json:"capacity"`
Category int8 `bun:"type:smallint,notnull,default:0" json:"category"`
SubmeterType int8 `bun:"meter_04kv_type,type:smallint,notnull,default:0" json:"meter04kvType"`
Category int8 `bun:"type:smallint,notnull" json:"category"`
SubmeterType int8 `bun:"meter_04kv_type,type:smallint,notnull" json:"meter04kvType"`
Region *string `json:"region"`
Address *string `json:"address"`
Contact *string `json:"contact"`