This commit is contained in:
Joe
2026-01-16 15:49:34 +08:00
commit 550d3e1f42
380 changed files with 62024 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package models
import (
"github.com/goravel/framework/database/orm"
)
type SystemLog struct {
orm.Model
Level string `gorm:"size:20;comment:日志级别"`
Module string `gorm:"size:50;comment:模块"`
TraceID string `gorm:"size:120;comment:链路ID" json:"trace_id"`
Message string `gorm:"type:text;comment:日志消息"`
Context string `gorm:"type:text;comment:上下文信息"`
IP string `gorm:"size:50;comment:IP地址"`
UserAgent string `gorm:"size:500;comment:用户代理"`
}