From f2a8ff9c85ab744b6d70d0d47df094f2a870d34a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 21 May 2024 10:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/happy_orchard_user_seed_record.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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"` }