bindbox-game/internal/repository/mysql/model/log_operation.gen.go
2025-10-16 13:28:24 +08:00

26 lines
1.1 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
import (
"time"
)
const TableNameLogOperation = "log_operation"
// LogOperation 内部日志表
type LogOperation struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键" json:"id"` // 主键
Level string `gorm:"column:level;not null;comment:错误级别" json:"level"` // 错误级别
Msg string `gorm:"column:msg;not null;comment:错误信息" json:"msg"` // 错误信息
Content string `gorm:"column:content;not null;comment:错误内容" json:"content"` // 错误内容
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
}
// TableName LogOperation's table name
func (*LogOperation) TableName() string {
return TableNameLogOperation
}