// 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" "gorm.io/gorm" ) const TableNameServer = "server" // Server mapped from table type Server struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期 UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期 Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期 Name string `gorm:"column:name;not null;comment:名称" json:"name"` // 名称 PublicIP string `gorm:"column:public_ip;not null;comment:公网ip" json:"public_ip"` // 公网ip PrivateIP string `gorm:"column:private_ip;not null;comment:内网ip" json:"private_ip"` // 内网ip AdminPort string `gorm:"column:admin_port;not null;comment:管理端口" json:"admin_port"` // 管理端口 } // TableName Server's table name func (*Server) TableName() string { return TableNameServer }