allowanddenyip.go 379 B

123456789101112131415161718
  1. package model
  2. import "time"
  3. type AllowAndDenyIp struct {
  4. Id int `gorm:"primary"`
  5. HostId int `gorm:"not null"`
  6. Uid int `gorm:"not null"`
  7. Ip string `gorm:"not null"`
  8. AllowOrDeny int `gorm:"not null"`
  9. CreatedAt time.Time
  10. UpdatedAt time.Time
  11. }
  12. func (m *AllowAndDenyIp) TableName() string {
  13. return "shd_waf_allow_and_deny_ip"
  14. }