bindbox-game/internal/repository/mysql/model/task_center_task_rewards.gen.go

29 lines
1.8 KiB
Go
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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:关联任务IDtask_center_tasks.id" json:"task_id"` // 关联任务IDtask_center_tasks.id
TierID int64 `gorm:"column:tier_id;not null;comment:关联档位IDtask_center_task_tiers.id" json:"tier_id"` // 关联档位IDtask_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
}