gameshieldbackend.go 676 B

1234567891011121314151617181920212223242526
  1. package model
  2. import "time"
  3. type GameShieldBackend struct {
  4. Id int `gorm:"primary"`
  5. HostId int `gorm:"not null"`
  6. KeySort int
  7. SourceMachineIP string `gorm:"not null"`
  8. Protocol string `gorm:"not null"`
  9. ProxyAddr string `gorm:"null"`
  10. ConnectPort string `gorm:"not null"`
  11. SdkPort string
  12. SdkIp string `gorm:"null"`
  13. Type string
  14. MaxBandwidth int `gorm:"not null;type:tinyint"`
  15. RealIp string
  16. Host string
  17. Remark string
  18. CreatedAt time.Time
  19. UpdatedAt time.Time
  20. }
  21. func (m *GameShieldBackend) TableName() string {
  22. return "shd_game_shield_backend"
  23. }