gatewaygroup.go 405 B

12345678910111213141516171819
  1. package model
  2. import "time"
  3. type GatewayGroup struct {
  4. Id int `gorm:"primary"`
  5. HostId int `gorm:"null"`
  6. RuleId int `gorm:"not null"`
  7. BanUdp int
  8. Name string `gorm:"null"`
  9. Operator int `gorm:"not null"`
  10. Comment string `gorm:"null"`
  11. CreatedAt time.Time
  12. UpdatedAt time.Time
  13. }
  14. func (m *GatewayGroup) TableName() string {
  15. return "shd_waf_gateway_group"
  16. }