diff --git a/src/models/happy_orchard_user_seed_record.go b/src/models/happy_orchard_user_seed_record.go index a46e82a..b9916ac 100644 --- a/src/models/happy_orchard_user_seed_record.go +++ b/src/models/happy_orchard_user_seed_record.go @@ -7,10 +7,9 @@ import ( type HappyOrchardUserSeedRecord struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Uid int `json:"uid" xorm:"INT(11)"` - SeedId int `json:"seed_id" xorm:"default 0 INT(11)"` - SeedName string `json:"seed_name" xorm:"default '' VARCHAR(255)"` - WaterNums int `json:"water_nums" xorm:"default 0 INT(11)"` - State int `json:"state" xorm:"default 0 INT(11)"` - Time time.Time `json:"time" xorm:"DATETIME"` - ChangeNum int `json:"change_num" xorm:"not null default 0 comment('更换种子的次数') INT(11)"` + SeedId int `json:"seed_id" xorm:"not null default 0 INT(11)"` + WaterNums int `json:"water_nums" xorm:"not null default 0 comment('当前获得水滴数') INT(11)"` + State int `json:"state" xorm:"not null default 1 comment('状态(1:种植中 2:待领取 3:已领取)') INT(11)"` + CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') DATETIME"` + UpdateAt time.Time `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP comment('更新时间') DATETIME"` }