gameshieldbackend.go 613 B

123456789101112131415161718192021222324
  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 ``
  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. Host string
  16. CreatedAt time.Time
  17. UpdatedAt time.Time
  18. }
  19. func (m *GameShieldBackend) TableName() string {
  20. return "shd_game_shield_backend"
  21. }