// 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 import ( "time" ) const TableNameTaskCenterTaskRewards = "task_center_task_rewards" // TaskCenterTaskRewards 任务中心-奖励配置 type TaskCenterTaskRewards struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID TaskID int64 `gorm:"column:task_id;not null;comment:关联任务ID(task_center_tasks.id)" json:"task_id"` // 关联任务ID(task_center_tasks.id) TierID int64 `gorm:"column:tier_id;not null;comment:关联档位ID(task_center_task_tiers.id)" json:"tier_id"` // 关联档位ID(task_center_task_tiers.id) RewardType string `gorm:"column:reward_type;not null;comment:奖励类型:points|coupon|item_card|title" json:"reward_type"` // 奖励类型:points|coupon|item_card|title RewardPayload string `gorm:"column:reward_payload;not null;comment:奖励载荷(JSON):各类型所需参数" json:"reward_payload"` // 奖励载荷(JSON):各类型所需参数 Quantity int64 `gorm:"column:quantity;not null;default:1;comment:发放数量或上限(视类型)" json:"quantity"` // 发放数量或上限(视类型) CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"updated_at"` // 更新时间 } // TableName TaskCenterTaskRewards's table name func (*TaskCenterTaskRewards) TableName() string { return TableNameTaskCenterTaskRewards }