|
|
// 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 TableNameProjectUserCoinLog = "project_user_coin_log"
|
|
|
|
|
|
// ProjectUserCoinLog mapped from table <project_user_coin_log>
|
|
|
type ProjectUserCoinLog struct {
|
|
|
ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"`
|
|
|
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null;index:idx_user_id_created_at,priority:2" json:"created_at"`
|
|
|
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
|
|
|
ProjectID int64 `gorm:"column:project_id;type:bigint;not null;index:idx_project_id_created_at,priority:1;comment:项目id(project_id)" json:"project_id"`
|
|
|
UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id_created_at,priority:1;comment:用户id(project_user表)" json:"user_id"`
|
|
|
Source string `gorm:"column:source;type:varchar(64);not null;index:idx_source_id_source,priority:2;comment:来源标识" json:"source"`
|
|
|
SourceID int64 `gorm:"column:source_id;type:bigint;not null;index:idx_source_id_source,priority:1;comment:来源id" json:"source_id"`
|
|
|
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"`
|
|
|
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"`
|
|
|
Num int32 `gorm:"column:num;type:int;not null;comment:数量" json:"num"`
|
|
|
OtherData string `gorm:"column:other_data;type:varchar(255);not null;comment:其他数据信息" json:"other_data"`
|
|
|
}
|
|
|
|
|
|
// TableName ProjectUserCoinLog's table name
|
|
|
func (*ProjectUserCoinLog) TableName() string {
|
|
|
return TableNameProjectUserCoinLog
|
|
|
}
|