biz_object_rule.go 965 B

12345678910111213141516
  1. package datamodels
  2. type BizObjectRule struct {
  3. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('BIZ ID') "`
  4. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "`
  5. OamId int64 `json:"oamId" xorm:"'oam_id' bigint pk comment('OAM ID') "`
  6. OrId int64 `json:"orId" xorm:"'or_id' bigint pk comment('Object Rule ID') "`
  7. RuleId int64 `json:"ruleId" xorm:"'rule_id' bigint comment('Rule ID') "`
  8. TargetAttrId int64 `json:"targetAttrId" xorm:"'target_attr_id' bigint comment('Target AttrId') "`
  9. RuleCode string `json:"ruleCode" xorm:"'rule_code' varchar(1023) comment('Rule Code') "`
  10. }
  11. func (t *BizObjectRule) TableName() string {
  12. return "biz_object_rule"
  13. }