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.

33 lines
2.3 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 TableNameReward = "reward"
// Reward mapped from table <reward>
type Reward struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
IsDel int8 `gorm:"column:is_del;type:tinyint;not null" json:"is_del"`
ProjectID int64 `gorm:"column:project_id;type:bigint;not null;index:idx_project_id_kv_mark,priority:1;comment:项目id(project表)" json:"project_id"`
ReceiveType int8 `gorm:"column:receive_type;type:tinyint;not null;comment:发放类型(1-系统发放,2-联系客服,3-客户端发放,4-表单)" json:"receive_type"`
KvData string `gorm:"column:kv_data;type:varchar(2000);not null;comment:回调的键值数据" json:"kv_data"`
KvMark string `gorm:"column:kv_mark;type:varchar(32);not null;index:idx_project_id_kv_mark,priority:2;comment:键值标识" json:"kv_mark"`
URLID int64 `gorm:"column:url_id;type:bigint;not null;index:idx_url_id,priority:1;comment:回调地址id" json:"url_id"`
FormID int64 `gorm:"column:form_id;type:bigint;not null;index:idx_form_id,priority:1;comment:表单ID" json:"form_id"`
Contact string `gorm:"column:contact;type:varchar(255);not null;comment:联系方式" json:"contact"`
RewardTitle string `gorm:"column:reward_title;type:varchar(255);not null;comment:奖品标题,用户后台功能统一展示" json:"reward_title"`
TitleDefault int8 `gorm:"column:title_default;type:tinyint;not null;comment:奖品标题是否使用的是默认语言的奖品名称(0-否,1-是)" json:"title_default"`
OldData int8 `gorm:"column:old_data;type:tinyint;not null;comment:同步的旧数据" json:"old_data"`
DyRewardType int8 `gorm:"column:dy_reward_type;type:tinyint;not null;comment:动态奖品内容类型(0-无,1-兑换码)" json:"dy_reward_type"`
Source int8 `gorm:"column:source;type:tinyint;not null;comment:数据来源(0-后台创建,1-奖品数据迁移,2-api创建)" json:"source"`
}
// TableName Reward's table name
func (*Reward) TableName() string {
return TableNameReward
}