|
|
// 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 TableNameFissionQaAnswer = "fission_qa_answer"
|
|
|
|
|
|
// FissionQaAnswer mapped from table <fission_qa_answer>
|
|
|
type FissionQaAnswer 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"`
|
|
|
HashID string `gorm:"column:hash_id;type:varchar(20);not null;uniqueIndex:uniq_hash_id,priority:1;comment:对外的唯一id" json:"hash_id"`
|
|
|
UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id,priority:1;comment:活动用户ID(fission_user表主键)" json:"user_id"`
|
|
|
CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_campaign_id,priority:1;comment:活动ID(fission_campaign表)" json:"campaign_id"`
|
|
|
Win int8 `gorm:"column:win;type:tinyint;not null;comment:是否达标(1-是,0-否)" json:"win"`
|
|
|
Score int32 `gorm:"column:score;type:int;not null;comment:答题分数" json:"score"`
|
|
|
RewardID int64 `gorm:"column:reward_id;type:bigint;not null;index:idx_reward_id,priority:1;comment:奖品ID" json:"reward_id"`
|
|
|
Title string `gorm:"column:title;type:varchar(65);not null;comment:奖品名称" json:"title"`
|
|
|
ImgURL string `gorm:"column:img_url;type:varchar(128);not null;comment:奖品图片" json:"img_url"`
|
|
|
RewardType int8 `gorm:"column:reward_type;type:tinyint;not null;comment:奖品类型(1-站内奖品,2-站外奖品)" json:"reward_type"`
|
|
|
Answer string `gorm:"column:answer;type:varchar(2000);not null;comment:答卷内容" json:"answer"`
|
|
|
}
|
|
|
|
|
|
// TableName FissionQaAnswer's table name
|
|
|
func (*FissionQaAnswer) TableName() string {
|
|
|
return TableNameFissionQaAnswer
|
|
|
}
|