gatewayip.go 602 B

1234567891011121314151617181920212223
  1. package model
  2. import (
  3. "time"
  4. )
  5. type Gatewayip struct {
  6. Id int `gorm:"primary"`
  7. HostId int `gorm:"not null"`
  8. Ip string `gorm:"not null"`
  9. Name string `gorm:"null"`
  10. NodeArea string `gorm:"null"`
  11. Operator int `gorm:"not null;default:1"`
  12. BanOverseas int `gorm:"null;default:0"`
  13. BanUdp int `gorm:"null;default:0"`
  14. Comment string `gorm:"null"`
  15. CreatedAt time.Time `json:"createdAt" form:"createdAt"`
  16. UpdatedAt time.Time `json:"updatedAt" form:"updatedAt"`
  17. }
  18. func (m *Gatewayip) TableName() string {
  19. return "shd_waf_gateway_ip"
  20. }