object_attr.go 2.1 KB

123456789101112131415161718192021222324252627282930
  1. package datamodels
  2. import "time"
  3. type ObjectAttr struct {
  4. ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('主键ID') "`
  5. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "`
  6. AttrId int64 `json:"attrId" xorm:"'attr_id' bigint pk comment('主键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. 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. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  14. IsNotNull int64 `json:"isNotNull" xorm:"'is_not_null' int comment('是否可修改') "`
  15. IsPKey int64 `json:"isPKey" xorm:"'is_pkey' int comment('是否可修改') "`
  16. SortNo int64 `json:"sortNo" xorm:"'sort_no' int comment('是否可修改') "`
  17. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  18. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  19. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  20. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  21. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  22. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  23. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  24. }
  25. func (t *ObjectAttr) TableName() string {
  26. return "ds_object_attr"
  27. }