model_object_data.go 1.7 KB

1234567891011121314151617181920212223242526
  1. package viewmodels
  2. import "time"
  3. type ModelObjectData struct {
  4. ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('主键ID') "`
  5. ModelTitle string `json:"modelTitle" xorm:"'model_title' varchar(127) comment('Model Title') "`
  6. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "`
  7. ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Type') "`
  8. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('模型名称') "`
  9. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('模型名称') "`
  10. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  11. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  12. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  13. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  14. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  15. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  16. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  17. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  18. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  19. Attrs []ModelObjectAttrInfo `json:"attrs"`
  20. }
  21. func (t *ModelObjectData) TableName() string {
  22. return "ds_object"
  23. }