gameshieldbackend.go 589 B

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