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.

28 lines
1.6 KiB
Go

// 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 TableNameUserBehavior = "user_behavior"
// UserBehavior mapped from table <user_behavior>
type UserBehavior struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null;index:idx_project_id_created_at,priority:2" json:"created_at"`
APIURL string `gorm:"column:api_url;type:varchar(64);not null;index:idx_company_id_api_url_created_at,priority:1;comment:请求的接口" json:"api_url"`
Desc string `gorm:"column:desc;type:varchar(255);not null;comment:接口描述" json:"desc"`
CompanyID int64 `gorm:"column:company_id;type:bigint;not null;index:idx_company_id_user_id_created_at,priority:1;comment:公司id" json:"company_id"`
UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_company_id_user_id_created_at,priority:2;comment:用户id" json:"user_id"`
ProjectID string `gorm:"column:project_id;type:varchar(22);not null;index:idx_project_id_created_at,priority:1;comment:项目hash_id" json:"project_id"`
IP string `gorm:"column:ip;type:varchar(255);not null;comment:操作ip" json:"ip"`
UaData string `gorm:"column:ua_data;type:varchar(255);not null;comment:部分ua头数据" json:"ua_data"`
Req string `gorm:"column:req;type:text;not null;comment:请求数据" json:"req"`
Res string `gorm:"column:res;type:text;not null;comment:操作结果" json:"res"`
}
// TableName UserBehavior's table name
func (*UserBehavior) TableName() string {
return TableNameUserBehavior
}