globallimit.go 495 B

1234567891011121314151617181920212223
  1. package model
  2. import "time"
  3. type GlobalLimit struct {
  4. Id int `gorm:"primary"`
  5. HostId int
  6. Name string
  7. RuleId int
  8. GroupId int
  9. Uid int
  10. CdnUid int
  11. GatewayGroupId int
  12. Comment string
  13. State bool `gorm:"column:state" default:"true"`
  14. ExpiredAt int64 `gorm:"column:expired_at"`
  15. createdAt time.Time
  16. updatedAt time.Time
  17. }
  18. func (m *GlobalLimit) TableName() string {
  19. return "shd_waf"
  20. }