You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
2.9 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameFissionKeep = "fission_keep"
// FissionKeep mapped from table <fission_keep>
type FissionKeep struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null;index:idx_campaign_id_created_at,priority:2" json:"created_at"`
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_campaign_id_created_at,priority:1;comment:活动ID(fission_campaign表)" json:"campaign_id"`
UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id,priority:1;comment:用户id" json:"user_id"`
Num int32 `gorm:"column:num;type:int;not null;comment:剩余总道具数" json:"num"`
MachineNum float64 `gorm:"column:machine_num;type:decimal(6,2);not null;default:0.00;comment:机器产生的道具数" json:"machine_num"`
CollectNum int32 `gorm:"column:collect_num;type:int;not null;comment:获得的总一级道具数量" json:"collect_num"`
Collect int32 `gorm:"column:collect;type:int;not null;comment:可收集的一级道具数量" json:"collect"`
SecondNum int32 `gorm:"column:second_num;type:int;not null;comment:收集的二级道具数量" json:"second_num"`
RewardID int64 `gorm:"column:reward_id;type:bigint;not null;comment:选择的奖品id(fission_campaign_reward表)" json:"reward_id"`
RecordID int64 `gorm:"column:record_id;type:bigint;not null;comment:选择奖品的获奖记录id(fission_reward_record表)" json:"record_id"`
FeedGetAt int64 `gorm:"column:feed_get_at;type:bigint;not null;comment:最后一次获喂养道具的时间" json:"feed_get_at"`
Step int32 `gorm:"column:step;type:int;not null;comment:养成阶段" json:"step"`
ExpiredAt int64 `gorm:"column:expired_at;type:bigint;not null;comment:过期时间戳(单位:s)" json:"expired_at"`
Guided int8 `gorm:"column:guided;type:tinyint;not null;comment:是否已经进行了引导" json:"guided"`
InviteLimit int8 `gorm:"column:invite_limit;type:tinyint;not null;comment:是否达到邀请上限(0-否,1-是)" json:"invite_limit"`
ReselectAt int64 `gorm:"column:reselect_at;type:bigint;not null;comment:重新下一个奖品时间" json:"reselect_at"`
CancelReward int8 `gorm:"column:cancel_reward;type:tinyint;not null;index:idx_campaign_id_expired_at_cancel_reward,priority:1;comment:是否取消了奖品(0-否,1-是)" json:"cancel_reward"`
ReceiveOffline int64 `gorm:"column:receive_offline;type:bigint;not null;comment:最近一次领取离线狗粮时间" json:"receive_offline"`
}
// TableName FissionKeep's table name
func (*FissionKeep) TableName() string {
return TableNameFissionKeep
}