You've already forked DataMate
Develop labeling module (#25)
* refactor: remove db table management from LS adapter (mv to scripts later); change adapter to use the same MySQL DB as other modules. * refactor: Rename LS Adapter module to datamate-python
This commit is contained in:
69
runtime/datamate-python/app/models/__init__.py
Normal file
69
runtime/datamate-python/app/models/__init__.py
Normal file
@@ -0,0 +1,69 @@
|
||||
# app/models/__init__.py
|
||||
|
||||
# Data Management (DM) 模块
|
||||
from .dm import (
|
||||
AnnotationTemplate,
|
||||
LabelingProject,
|
||||
Dataset,
|
||||
DatasetFiles,
|
||||
DatasetStatistics,
|
||||
DatasetTag,
|
||||
Tag,
|
||||
User
|
||||
)
|
||||
|
||||
# Data Cleaning 模块
|
||||
from .cleaning import (
|
||||
CleanTemplate,
|
||||
CleanTask,
|
||||
OperatorInstance,
|
||||
CleanResult
|
||||
)
|
||||
|
||||
# Data Collection (DC) 模块
|
||||
from .collection import (
|
||||
TaskExecution,
|
||||
CollectionTask,
|
||||
TaskLog,
|
||||
DataxTemplate
|
||||
)
|
||||
|
||||
# Common 模块
|
||||
from .common import (
|
||||
ChunkUploadRequest
|
||||
)
|
||||
|
||||
# Operator 模块
|
||||
from .operator import (
|
||||
Operator,
|
||||
OperatorCategory,
|
||||
OperatorCategoryRelation
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# DM 模块
|
||||
"AnnotationTemplate",
|
||||
"LabelingProject",
|
||||
"Dataset",
|
||||
"DatasetFiles",
|
||||
"DatasetStatistics",
|
||||
"DatasetTag",
|
||||
"Tag",
|
||||
"User",
|
||||
# Cleaning 模块
|
||||
"CleanTemplate",
|
||||
"CleanTask",
|
||||
"OperatorInstance",
|
||||
"CleanResult",
|
||||
# Collection 模块
|
||||
"TaskExecution",
|
||||
"CollectionTask",
|
||||
"TaskLog",
|
||||
"DataxTemplate",
|
||||
# Common 模块
|
||||
"ChunkUploadRequest",
|
||||
# Operator 模块
|
||||
"Operator",
|
||||
"OperatorCategory",
|
||||
"OperatorCategoryRelation"
|
||||
]
|
||||
Reference in New Issue
Block a user