28 lines
1.6 KiB
Go
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 models
|
|
|
|
import "platform/web/globals/orm"
|
|
|
|
const TableNameLogsUserUsage = "logs_user_usage"
|
|
|
|
// LogsUserUsage mapped from table <logs_user_usage>
|
|
type LogsUserUsage struct {
|
|
ID int32 `gorm:"column:id;type:integer;primaryKey;autoIncrement:true;comment:日志ID" json:"id"` // 日志ID
|
|
UserID int32 `gorm:"column:user_id;type:integer;not null;comment:用户ID" json:"user_id"` // 用户ID
|
|
ResourceID int32 `gorm:"column:resource_id;type:integer;not null;comment:套餐ID" json:"resource_id"` // 套餐ID
|
|
Count_ int32 `gorm:"column:count;type:integer;not null;comment:数量" json:"count"` // 数量
|
|
Prov *string `gorm:"column:prov;type:character varying(255);comment:省份" json:"prov"` // 省份
|
|
City *string `gorm:"column:city;type:character varying(255);comment:城市" json:"city"` // 城市
|
|
Isp *string `gorm:"column:isp;type:character varying(255);comment:运营商" json:"isp"` // 运营商
|
|
IP string `gorm:"column:ip;type:character varying(45);not null;comment:IP地址" json:"ip"` // IP地址
|
|
Time orm.LocalDateTime `gorm:"column:time;type:timestamp without time zone;not null;comment:提取时间" json:"time"` // 提取时间
|
|
}
|
|
|
|
// TableName LogsUserUsage's table name
|
|
func (*LogsUserUsage) TableName() string {
|
|
return TableNameLogsUserUsage
|
|
}
|