mirror of
https://github.com/komari-monitor/komari.git
synced 2026-11-20 06:40:50 +00:00
11 lines
435 B
Go
11 lines
435 B
Go
package models
|
|
|
|
type Log struct {
|
|
ID uint `json:"id,omitempty" gorm:"primaryKey;autoIncrement"`
|
|
IP string `json:"ip" gorm:"type:varchar(45);"` // IPv4 or IPv6
|
|
UUID string `json:"uuid" gorm:"type:varchar(36);"`
|
|
Message string `json:"message" gorm:"type:text;not null"`
|
|
MsgType string `json:"msg_type" gorm:"type:varchar(20);not null"`
|
|
Time LocalTime `json:"time" gorm:"autoCreateTime;not null"`
|
|
}
|