globallimit.go 474 B

12345678910111213141516171819202122
  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. Comment string
  12. State bool `gorm:"column:state" default:"true"`
  13. ExpiredAt int64 `gorm:"column:expired_at"`
  14. createdAt time.Time
  15. updatedAt time.Time
  16. }
  17. func (m *GlobalLimit) TableName() string {
  18. return "shd_waf"
  19. }