biz_object_mapping.go 1.4 KB

1234567891011121314151617181920212223
  1. package datamodel
  2. import "time"
  3. type BizObjectMapping struct {
  4. MappingId int64 `json:"mappingId" xorm:"'mapping_id' bigint pk comment('Mapping ID') "`
  5. BizId int64 `json:"bizId" xorm:"'biz_id' bigint comment('Biz ID') "`
  6. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint comment('Object ID') "`
  7. MappingModelId int64 `json:"mappingModelId" xorm:"'mapping_model_id' bigint comment('Mapping Model ID') "`
  8. MappingObjectId int64 `json:"mappingObjectId" xorm:"'mapping_object_id' bigint comment('Mapping Object ID')"`
  9. SortNo int64 `json:"sortNo" xorm:"'sort_no' bigint comment('Sort No') "`
  10. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  11. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  12. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  13. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  14. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  15. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  16. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  17. }
  18. func (t *BizObjectMapping) TableName() string {
  19. return "biz_object_mapping"
  20. }