biz_object_attr.go 2.1 KB

1234567891011121314151617181920212223242526272829
  1. package datamodels
  2. import "time"
  3. type BizObjectAttr struct {
  4. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "`
  5. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "`
  6. AttrId int64 `json:"attrId" xorm:"'attr_id' bigint pk comment('Attr ID') "`
  7. AttrTitle string `json:"attrTitle" xorm:"'attr_title' varchar(127) comment('AttrTitle') "`
  8. AttrCode string `json:"attrCode" xorm:"'attr_code' varchar(127) comment('AttrCode') "`
  9. MappingCode string `json:"mappingCode" xorm:"'mapping_code' varchar(127) comment('ModelCode') "`
  10. AttrType int64 `json:"attrType" xorm:"'attr_type' bigint comment('Type') "`
  11. AttrLength int64 `json:"attrLength" xorm:"'attr_length' bigint comment('attrLength') "`
  12. AttrDecimals int64 `json:"attrDecimals" xorm:"'attr_decimals' bigint comment('attrDecimals') "`
  13. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  14. IsNotNull int64 `json:"isNotNull" xorm:"'is_not_null' int comment('是否可修改') "`
  15. SortNo int64 `json:"sortNo" xorm:"'sort_no' int comment('是否可修改') "`
  16. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  17. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  18. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  19. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  20. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  21. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  22. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  23. }
  24. func (t *BizObjectAttr) TableName() string {
  25. return "biz_object_attr"
  26. }