server.gen.go 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameServer = "server"
  10. // Server mapped from table <server>
  11. type Server struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. Status int64 `gorm:"column:status;default:1;comment:Status 1: normal 2: ban | 状态 1 正常 2 禁用" json:"status"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. Name string `gorm:"column:name;not null;comment:名称" json:"name"` // 名称
  18. PublicIP string `gorm:"column:public_ip;not null;comment:公网ip" json:"public_ip"` // 公网ip
  19. PrivateIP string `gorm:"column:private_ip;not null;comment:内网ip" json:"private_ip"` // 内网ip
  20. AdminPort string `gorm:"column:admin_port;not null;comment:管理端口" json:"admin_port"` // 管理端口
  21. }
  22. // TableName Server's table name
  23. func (*Server) TableName() string {
  24. return TableNameServer
  25. }