Browse Source

update

master
dengbiao 7 months ago
parent
commit
0ab1ac266e
2 changed files with 7 additions and 5 deletions
  1. +1
    -0
      src/models/happy_orchard_seed.go
  2. +6
    -5
      src/models/happy_orchard_user_waters.go

+ 1
- 0
src/models/happy_orchard_seed.go View File

@@ -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"`
}

+ 6
- 5
src/models/happy_orchard_user_waters.go View File

@@ -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"`
}

Loading…
Cancel
Save