From 0ab1ac266e8731cc9e03669f1ef3f8fdffd370db Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 21 May 2024 14:13:33 +0800 Subject: [PATCH] update --- src/models/happy_orchard_seed.go | 1 + src/models/happy_orchard_user_waters.go | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/models/happy_orchard_seed.go b/src/models/happy_orchard_seed.go index 482aa37..a065a3f 100644 --- a/src/models/happy_orchard_seed.go +++ b/src/models/happy_orchard_seed.go @@ -13,6 +13,7 @@ type HappyOrchardSeed struct { NeedWatersNumForStage3 int `json:"need_waters_num_for_stage_3" xorm:"not null default 0 comment('阶段4所需水滴数') INT(11)"` NeedWatersNumForStage4 int `json:"need_waters_num_for_stage_4" xorm:"not null default 0 comment('阶段5所需水滴数') INT(11)"` NeedWatersNumForStage5 int `json:"need_waters_num_for_stage_5" xorm:"not null default 0 comment('阶段6所需水滴数') INT(11)"` + IsUse int32 `json:"is_use" xorm:"not null default 1 comment('是否可用(1:可用 2:不可用)') INT(11)"` CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"` UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"` } diff --git a/src/models/happy_orchard_user_waters.go b/src/models/happy_orchard_user_waters.go index 27ba552..9ace97f 100644 --- a/src/models/happy_orchard_user_waters.go +++ b/src/models/happy_orchard_user_waters.go @@ -1,9 +1,10 @@ package models type HappyOrchardUserWaters struct { - Id int `json:"id" xorm:"not null pk autoincr comment('自增id') INT(11)"` - Uid string `json:"uid" xorm:"not null default '' comment('名称') VARCHAR(255)"` - WaterNums int `json:"water_nums" xorm:"not null default 0 comment('水滴数') INT(11)"` - CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"` - UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"` + Id int `json:"id" xorm:"not null pk autoincr comment('自增id') INT(11)"` + Uid string `json:"uid" xorm:"not null default '' comment('名称') VARCHAR(255)"` + WaterNums int `json:"water_nums" xorm:"not null default 0 comment('水滴数') INT(11)"` + ReplaceSeedNums int `json:"replace_seed_nums" xorm:"not null default 0 comment('更换种子次数') INT(11)"` + CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"` + UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"` }