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.

32 lines
2.0 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 TableNameRewardLang = "reward_lang"
// RewardLang mapped from table <reward_lang>
type RewardLang struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" 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 int64 `gorm:"column:is_del;type:bigint;not null" json:"is_del"`
ProjectID int64 `gorm:"column:project_id;type:bigint;not null;index:idx_project_id,priority:1;comment:项目id(project表)" json:"project_id"`
RewardID int64 `gorm:"column:reward_id;type:bigint;not null;uniqueIndex:uniq_reward_id_mark,priority:1;comment:奖品id(reward表)" json:"reward_id"`
Mark string `gorm:"column:mark;type:varchar(6);not null;uniqueIndex:uniq_reward_id_mark,priority:2;comment:语种标识" json:"mark"`
Title string `gorm:"column:title;type:varchar(64);not null;comment:奖品名称" json:"title"`
ImgURL string `gorm:"column:img_url;type:varchar(255);not null;comment:奖品图片" json:"img_url"`
IsDefault int8 `gorm:"column:is_default;type:tinyint;not null;comment:是否默认语言(0-否,1-是)" json:"is_default"`
OpenToUse int8 `gorm:"column:open_to_use;type:tinyint;not null;comment:开启去使用(0-否,1-是)" json:"open_to_use"`
WebURL string `gorm:"column:web_url;type:varchar(255);not null;comment:Web端的跳转地址" json:"web_url"`
AppParam string `gorm:"column:app_param;type:varchar(255);not null;comment:App端的跳转参数" json:"app_param"`
ImageID int64 `gorm:"column:image_id;type:bigint;not null;comment:图片素材id" json:"image_id"`
PcParam string `gorm:"column:pc_param;type:varchar(255);not null;comment:pc端的跳转参数" json:"pc_param"`
}
// TableName RewardLang's table name
func (*RewardLang) TableName() string {
return TableNameRewardLang
}