forked from free-lancers/electricity_bill_calc_service
enhance(model):调整数据模型设计。
This commit is contained in:
@@ -6,12 +6,13 @@ import (
|
||||
|
||||
type MaintenanceFee struct {
|
||||
CreatedAndModified `xorm:"extends"`
|
||||
Id string `xorm:"varchar(120) pk notnull" json:"id"`
|
||||
ParkId string `xorm:"varchar(120) notnull" json:"parkId"`
|
||||
Name string `xorm:"varchar(50) notnull" json:"name"`
|
||||
Fee decimal.Decimal `xorm:"numeric(8,2) notnull" json:"fee"`
|
||||
Deleted `xorm:"extends"`
|
||||
Id string `xorm:"varchar(120) pk not null" json:"id"`
|
||||
ParkId string `xorm:"varchar(120) not null" json:"parkId"`
|
||||
Name string `xorm:"varchar(50) not null" json:"name"`
|
||||
Fee decimal.Decimal `xorm:"numeric(8,2) not null" json:"fee"`
|
||||
Memo *string `xorm:"text" json:"memo"`
|
||||
Enabled bool `xorm:"bool notnull" json:"enabled"`
|
||||
Enabled bool `xorm:"bool not null" json:"enabled"`
|
||||
}
|
||||
|
||||
func (MaintenanceFee) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user