diff --git a/src/model/admin_log.go b/src/model/admin_log.go new file mode 100644 index 0000000..7f7e8a1 --- /dev/null +++ b/src/model/admin_log.go @@ -0,0 +1,15 @@ +package model + +import ( + "time" +) + +type AdminLog struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Type string `json:"type" xorm:"VARCHAR(255)"` + AdminId int `json:"admin_id" xorm:"default 0 INT(11)"` + Memo string `json:"memo" xorm:"VARCHAR(2000)"` + Time time.Time `json:"time" xorm:"DATETIME"` + Ip string `json:"ip" xorm:"VARCHAR(255)"` + Data string `json:"data" xorm:"TEXT"` +}