globallimit.go 453 B

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