// 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 TableNameFissionCoin = "fission_coin" // FissionCoin mapped from table type FissionCoin struct { ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"` CreatedAt int64 `gorm:"column:created_at;type:bigint;not null;uniqueIndex:uniq_scene_id_created_at_user_id,priority:2;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;uniqueIndex:uniq_scene_id_created_at_user_id,priority:3;index:idx_user_id,priority:1;comment:用户id" json:"user_id"` SceneID int64 `gorm:"column:scene_id;type:bigint;not null;uniqueIndex:uniq_scene_id_created_at_user_id,priority:1;comment:场次id" json:"scene_id"` UseNum int32 `gorm:"column:use_num;type:int;not null;comment:投放次数" json:"use_num"` UseCoin int32 `gorm:"column:use_coin;type:int;not null;comment:投放金币总数" json:"use_coin"` GetCoin int32 `gorm:"column:get_coin;type:int;not null;comment:领取的金币数" json:"get_coin"` Status int8 `gorm:"column:status;type:tinyint;not null;comment:状态(1-未参与,2-待领取,3-已领取,4-未领取)" json:"status"` PreSceneOk int8 `gorm:"column:pre_scene_ok;type:tinyint;not null;comment:上一场活动是否结算完毕(0-否,1-是)" json:"pre_scene_ok"` } // TableName FissionCoin's table name func (*FissionCoin) TableName() string { return TableNameFissionCoin }