gatewaygroup.go 387 B

123456789101112131415161718
  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. Name string `gorm:"null"`
  8. Operator int `gorm:"not null"`
  9. Comment string `gorm:"null"`
  10. CreatedAt time.Time
  11. UpdatedAt time.Time
  12. }
  13. func (m *GatewayGroup) TableName() string {
  14. return "shd_waf_gateway_group"
  15. }