// 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 TableNameToolsRestartLog = "tools_restart_log" // ToolsRestartLog mapped from table type ToolsRestartLog struct { ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"` // ID Version string `gorm:"column:version;type:varchar(128);not null" json:"version"` // 版本号 AdminID int64 `gorm:"column:admin_id;type:bigint(20);not null" json:"admin_id"` // 管理员ID Username string `gorm:"column:username;type:varchar(255);not null" json:"username"` // 操作用户 IP string `gorm:"column:ip;type:varchar(20);not null" json:"ip"` // 操作IP UserAgent string `gorm:"column:user_agent;type:varchar(512);not null" json:"user_agent"` // 访问代理 Command string `gorm:"column:command;type:varchar(255);not null" json:"command"` // 重启命令 Stdout string `gorm:"column:stdout;type:longtext;not null" json:"stdout"` // 执行日志 Latency int64 `gorm:"column:latency;type:bigint(20);not null" json:"latency"` // 耗时 CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"created_at"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"` } // TableName ToolsRestartLog's table name func (*ToolsRestartLog) TableName() string { return TableNameToolsRestartLog }