object_data_info.go 1.5 KB

12345678910111213141516171819202122232425
  1. package viewmodels
  2. import "time"
  3. type ObjectDataInfo 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. ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Type') "`
  7. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('模型名称') "`
  8. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('模型名称') "`
  9. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  10. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  11. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  12. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  13. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  14. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  15. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  16. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  17. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  18. Attrs []ObjectAttrInfo `json:"attrs"`
  19. }
  20. func (t *ObjectDataInfo) TableName() string {
  21. return "ds_object"
  22. }