// 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 entity import ( "time" "github.com/go-sonic/sonic/consts" ) const TableNameLog = "log" // Log mapped from table type Log struct { ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"` CreateTime time.Time `gorm:"column:create_time;type:datetime;not null;index:log_create_time,priority:1" json:"create_time"` UpdateTime *time.Time `gorm:"column:update_time;type:datetime" json:"update_time"` Content string `gorm:"column:content;type:varchar(1023);not null" json:"content"` IPAddress string `gorm:"column:ip_address;type:varchar(127);not null" json:"ip_address"` LogKey string `gorm:"column:log_key;type:varchar(1023);not null" json:"log_key"` Type consts.LogType `gorm:"column:type;type:bigint;not null" json:"type"` } // TableName Log's table name func (*Log) TableName() string { return TableNameLog }