object_attr_info.go 1.6 KB

123456789101112131415161718192021
  1. package viewmodels
  2. type ObjectAttrInfo struct {
  3. ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('主键ID') "`
  4. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "`
  5. AttrId int64 `json:"attrId" xorm:"'attr_id' bigint pk comment('主键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. AttrType int64 `json:"attrType" xorm:"'attr_type' bigint comment('Type') "`
  9. AttrLength int64 `json:"attrLength" xorm:"'attr_length' bigint comment('attrLength') "`
  10. AttrDecimals int64 `json:"attrDecimals" xorm:"'attr_decimals' bigint comment('attrDecimals') "`
  11. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  12. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  13. IsNotNull int64 `json:"isNotNull" xorm:"'is_not_null' int comment('是否可修改') "`
  14. IsPKey int64 `json:"isPKey" xorm:"'is_pkey' int comment('是否可修改') "`
  15. SortNo int64 `json:"sortNo" xorm:"'sort_no' int comment('是否可修改') "`
  16. }
  17. func (t *ObjectAttrInfo) TableName() string {
  18. return "ds_object_attr"
  19. }