package model import "time" type GlobalLimit struct { Id int `gorm:"primary"` HostId int Name string RuleId int GroupId int Uid int CdnUid int GatewayGroupId int Comment string State bool `gorm:"column:state" default:"true"` ExpiredAt int64 createdAt time.Time updatedAt time.Time } func (m *GlobalLimit) TableName() string { return "shd_waf" }