init
This commit is contained in:
@@ -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:用户代理"`
|
||||
}
|
||||
Reference in New Issue
Block a user