biz_object_attr_info.go 1.8 KB

1234567891011121314151617181920212223
  1. package viewmodels
  2. type BizObjectAttrInfo 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. AttrId int64 `json:"attrId" xorm:"'attr_id' bigint pk comment('Attr ID') "`
  6. AttrTitle string `json:"attrTitle" xorm:"'attr_title' varchar(127) comment('AttrTitle') "`
  7. AttrCode string `json:"attrCode" xorm:"'attr_code' varchar(127) comment('AttrCode') "`
  8. MappingCode string `json:"mappingCode" xorm:"'mapping_code' varchar(127) comment('AttrCode') "`
  9. AttrType int64 `json:"attrType" xorm:"'attr_type' bigint comment('Type') "`
  10. AttrLength int64 `json:"attrLength" xorm:"'attr_length' bigint comment('attrLength') "`
  11. AttrDecimals int64 `json:"attrDecimals" xorm:"'attr_decimals' bigint comment('attrDecimals') "`
  12. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  13. AttrMappingCode string `json:"attrMappingCode" xorm:"'attr_mapping_code' varchar(127) comment('AttrMappingCode')"`
  14. IsNotNull int64 `json:"isNotNull" xorm:"'is_not_null' int comment('是否可修改') "`
  15. SortNo int64 `json:"sortNo" xorm:"'sort_no' int comment('是否可修改') "`
  16. RuleId int64 `json:"ruleId" xorm:"'rule_id' int comment('Rule ID') "`
  17. }
  18. func (t *BizObjectAttrInfo) TableName() string {
  19. return "ds_object_attr"
  20. }