|
|
// 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 TableNameFissionPointsLog = "fission_points_log"
|
|
|
|
|
|
// FissionPointsLog mapped from table <fission_points_log>
|
|
|
type FissionPointsLog struct {
|
|
|
ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"`
|
|
|
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null;index:idx_campaign_id_created_at,priority:2" json:"created_at"`
|
|
|
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
|
|
|
CampaignID int64 `gorm:"column:campaign_id;type:bigint;not null;index:idx_campaign_id_created_at,priority:1;comment:活动id(fission_campaign表)" json:"campaign_id"`
|
|
|
UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id_state,priority:1;comment:用户id(fission_user表)" json:"user_id"`
|
|
|
State string `gorm:"column:state;type:varchar(10);not null;index:idx_user_id_state,priority:2;comment:类型(deduct - 扣除, gain - 获得)" json:"state"`
|
|
|
Num int32 `gorm:"column:num;type:int;not null;comment:数量" json:"num"`
|
|
|
Source string `gorm:"column:source;type:varchar(64);not null;comment:来源标识" json:"source"`
|
|
|
ReqURL string `gorm:"column:req_url;type:varchar(255);not null;comment:请求地址" json:"req_url"`
|
|
|
Req string `gorm:"column:req;type:varchar(255);not null;comment:请求数据" json:"req"`
|
|
|
Resp string `gorm:"column:resp;type:varchar(255);not null;comment:返回数据" json:"resp"`
|
|
|
RespCode int32 `gorm:"column:resp_code;type:int;not null;comment:返回状态码" json:"resp_code"`
|
|
|
ReqTime int64 `gorm:"column:req_time;type:bigint;not null;comment:请求时长(单位:ms)" json:"req_time"`
|
|
|
ErrMsg string `gorm:"column:err_msg;type:varchar(255);not null;comment:错误信息" json:"err_msg"`
|
|
|
OtherData string `gorm:"column:other_data;type:varchar(255);not null;comment:其他数据信息" json:"other_data"`
|
|
|
Token string `gorm:"column:token;type:varchar(255);not null;comment:请求token" json:"token"`
|
|
|
ReqHeader string `gorm:"column:req_header;type:varchar(255);not null;comment:请求头数据" json:"req_header"`
|
|
|
}
|
|
|
|
|
|
// TableName FissionPointsLog's table name
|
|
|
func (*FissionPointsLog) TableName() string {
|
|
|
return TableNameFissionPointsLog
|
|
|
}
|