2022-10-12 10:22:22 -04:00
|
|
|
"""Loads and sets up all database models for SQLAlchemy.
|
|
|
|
|
|
|
|
autoflake8 will remove these lines without the noqa comment
|
|
|
|
|
|
|
|
NOTE: make sure this file is ignored by reorder-python-imports since
|
|
|
|
some models need to be loaded before others for relationships and to
|
|
|
|
avoid circular imports
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
from flask_bpmn.models.db import add_listeners
|
|
|
|
|
2022-10-21 16:28:09 -04:00
|
|
|
# must load these before UserModel and GroupModel for relationships
|
2022-10-12 10:22:22 -04:00
|
|
|
from spiffworkflow_backend.models.user_group_assignment import (
|
|
|
|
UserGroupAssignmentModel,
|
|
|
|
) # noqa: F401
|
2022-10-21 16:28:09 -04:00
|
|
|
from spiffworkflow_backend.models.principal import PrincipalModel # noqa: F401
|
2022-10-12 10:22:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
from spiffworkflow_backend.models.active_task import ActiveTaskModel # noqa: F401
|
2022-11-14 15:23:37 -05:00
|
|
|
from spiffworkflow_backend.models.spec_reference import (
|
|
|
|
SpecReferenceCache,
|
2022-10-12 10:22:22 -04:00
|
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.message_correlation_property import (
|
|
|
|
MessageCorrelationPropertyModel,
|
|
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.message_instance import (
|
|
|
|
MessageInstanceModel,
|
|
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.message_model import MessageModel # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.message_triggerable_process_model import (
|
|
|
|
MessageTriggerableProcessModel,
|
|
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.permission_assignment import (
|
|
|
|
PermissionAssignmentModel,
|
|
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.permission_target import (
|
|
|
|
PermissionTargetModel,
|
|
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.process_instance import (
|
|
|
|
ProcessInstanceModel,
|
|
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.process_instance_report import (
|
|
|
|
ProcessInstanceReportModel,
|
|
|
|
) # noqa: F401
|
2022-10-20 16:00:12 -04:00
|
|
|
from spiffworkflow_backend.models.refresh_token import RefreshTokenModel # noqa: F401
|
2022-10-12 10:22:22 -04:00
|
|
|
from spiffworkflow_backend.models.secret_model import SecretModel # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.spiff_logging import SpiffLoggingModel # noqa: F401
|
2022-11-02 14:34:59 -04:00
|
|
|
from spiffworkflow_backend.models.spiff_step_details import (
|
|
|
|
SpiffStepDetailsModel,
|
|
|
|
) # noqa: F401
|
2022-10-12 10:22:22 -04:00
|
|
|
from spiffworkflow_backend.models.user import UserModel # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.group import GroupModel # noqa: F401
|
2022-11-28 15:26:50 -05:00
|
|
|
from spiffworkflow_backend.models.process_instance_metadata import (
|
|
|
|
ProcessInstanceMetadataModel,
|
|
|
|
) # noqa: F401
|
2022-10-12 10:22:22 -04:00
|
|
|
|
|
|
|
add_listeners()
|