model_object_rule.go 612 B

123456789101112
  1. package datamodels
  2. type ModelObjectRule struct {
  3. ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('Model ID') "`
  4. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "`
  5. RuleId int64 `json:"ruleId" xorm:"'rule_id' bigint comment('Rule ID') "`
  6. TargetAttrId int64 `json:"targetAttrId" xorm:"'target_attr_id' bigint comment('Target Attr ID')"`
  7. }
  8. func (t *ModelObjectRule) TableName() string {
  9. return "model_object_rule"
  10. }