|
|
// 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 TableNameRewardPush = "reward_push"
|
|
|
|
|
|
// RewardPush mapped from table <reward_push>
|
|
|
type RewardPush struct {
|
|
|
ID string `gorm:"column:id;type:char(20);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"`
|
|
|
Source string `gorm:"column:source;type:varchar(32);not null;uniqueIndex:uniq_relate_id_first_id_source_second_id,priority:3;index:idx_first_id_source_second_id,priority:2;comment:来源标识" json:"source"`
|
|
|
FirstID int64 `gorm:"column:first_id;type:bigint;not null;uniqueIndex:uniq_relate_id_first_id_source_second_id,priority:2;index:idx_first_id_source_second_id,priority:1;comment:来源一级id" json:"first_id"`
|
|
|
SecondID int64 `gorm:"column:second_id;type:bigint;not null;uniqueIndex:uniq_relate_id_first_id_source_second_id,priority:4;index:idx_first_id_source_second_id,priority:3;comment:来源二级id" json:"second_id"`
|
|
|
RelateID int64 `gorm:"column:relate_id;type:bigint;not null;uniqueIndex:uniq_relate_id_first_id_source_second_id,priority:1;comment:关联记录id" json:"relate_id"`
|
|
|
RewardID int64 `gorm:"column:reward_id;type:bigint;not null;comment:奖品id(reward表)" json:"reward_id"`
|
|
|
UserID string `gorm:"column:user_id;type:varchar(64);not null;comment:第三方应用用户ID" json:"user_id"`
|
|
|
Param string `gorm:"column:param;type:text;not null;comment:推送参数" json:"param"`
|
|
|
Sync int8 `gorm:"column:sync;type:tinyint;not null;comment:是否同步请求(0-否,1-是)" json:"sync"`
|
|
|
Status int8 `gorm:"column:status;type:tinyint;not null;comment:状态(1-推送中,2-完成,3-失败)" json:"status"`
|
|
|
FailType string `gorm:"column:fail_type;type:varchar(20);not null;comment:失败原因标识" json:"fail_type"`
|
|
|
FailMsg string `gorm:"column:fail_msg;type:varchar(255);not null;comment:具体失败原因" json:"fail_msg"`
|
|
|
PushNum int32 `gorm:"column:push_num;type:int;not null;comment:推送次数" json:"push_num"`
|
|
|
RespData string `gorm:"column:resp_data;type:varchar(255);not null;comment:成功后返回的数据" json:"resp_data"`
|
|
|
}
|
|
|
|
|
|
// TableName RewardPush's table name
|
|
|
func (*RewardPush) TableName() string {
|
|
|
return TableNameRewardPush
|
|
|
}
|