syrtis-python-orm 4.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- syrtis_python_orm/__init__.py +7 -0
- syrtis_python_orm/common/__init__.py +0 -0
- syrtis_python_orm/common/generated_entities.py +117 -0
- syrtis_python_orm/common/generated_repositories.py +137 -0
- syrtis_python_orm/common/orm_repositories_manager.py +24 -0
- syrtis_python_orm/data/__init__.py +0 -0
- syrtis_python_orm/data/entity/__init__.py +0 -0
- syrtis_python_orm/data/entity/artifact.json +261 -0
- syrtis_python_orm/data/entity/card.json +468 -0
- syrtis_python_orm/data/entity/card_message.json +139 -0
- syrtis_python_orm/data/entity/card_relation.json +163 -0
- syrtis_python_orm/data/entity/chunk.json +219 -0
- syrtis_python_orm/data/entity/content_type.json +235 -0
- syrtis_python_orm/data/entity/credential.json +175 -0
- syrtis_python_orm/data/entity/credential_parameter.json +166 -0
- syrtis_python_orm/data/entity/dashboard.json +213 -0
- syrtis_python_orm/data/entity/directory.json +125 -0
- syrtis_python_orm/data/entity/document.json +321 -0
- syrtis_python_orm/data/entity/document_directory.json +139 -0
- syrtis_python_orm/data/entity/embedding.json +192 -0
- syrtis_python_orm/data/entity/environment.json +90 -0
- syrtis_python_orm/data/entity/extension.json +203 -0
- syrtis_python_orm/data/entity/instruction.json +211 -0
- syrtis_python_orm/data/entity/job.json +317 -0
- syrtis_python_orm/data/entity/layer.json +96 -0
- syrtis_python_orm/data/entity/log.json +642 -0
- syrtis_python_orm/data/entity/message.json +623 -0
- syrtis_python_orm/data/entity/message_stamp.json +140 -0
- syrtis_python_orm/data/entity/model.json +226 -0
- syrtis_python_orm/data/entity/node.json +90 -0
- syrtis_python_orm/data/entity/operator.json +149 -0
- syrtis_python_orm/data/entity/operator_port.json +220 -0
- syrtis_python_orm/data/entity/panel.json +450 -0
- syrtis_python_orm/data/entity/panel_stamp.json +116 -0
- syrtis_python_orm/data/entity/pipeline.json +357 -0
- syrtis_python_orm/data/entity/pipeline_operator.json +28 -0
- syrtis_python_orm/data/entity/pipeline_projection.json +163 -0
- syrtis_python_orm/data/entity/project.json +213 -0
- syrtis_python_orm/data/entity/project_access.json +161 -0
- syrtis_python_orm/data/entity/projection.json +349 -0
- syrtis_python_orm/data/entity/projection_config.json +237 -0
- syrtis_python_orm/data/entity/projection_relation.json +261 -0
- syrtis_python_orm/data/entity/prompt.json +495 -0
- syrtis_python_orm/data/entity/request.json +495 -0
- syrtis_python_orm/data/entity/scenario.json +461 -0
- syrtis_python_orm/data/entity/schema.json +63 -0
- syrtis_python_orm/data/entity/session.json +364 -0
- syrtis_python_orm/data/entity/session_group.json +196 -0
- syrtis_python_orm/data/entity/slot.json +407 -0
- syrtis_python_orm/data/entity/slot_config.json +164 -0
- syrtis_python_orm/data/entity/slot_message.json +536 -0
- syrtis_python_orm/data/entity/slot_message_stamp.json +120 -0
- syrtis_python_orm/data/entity/slot_relation.json +191 -0
- syrtis_python_orm/data/entity/source.json +187 -0
- syrtis_python_orm/data/entity/storage.json +140 -0
- syrtis_python_orm/data/entity/storage_content_type.json +139 -0
- syrtis_python_orm/data/entity/template.json +188 -0
- syrtis_python_orm/data/entity/timezone.json +66 -0
- syrtis_python_orm/data/entity/token.json +116 -0
- syrtis_python_orm/data/entity/trigger.json +90 -0
- syrtis_python_orm/data/entity/trigger_config.json +138 -0
- syrtis_python_orm/data/entity/user.json +268 -0
- syrtis_python_orm/data/entity/user_config.json +193 -0
- syrtis_python_orm/entity/__init__.py +0 -0
- syrtis_python_orm/entity/artifact.py +11 -0
- syrtis_python_orm/entity/card.py +11 -0
- syrtis_python_orm/entity/card_message.py +13 -0
- syrtis_python_orm/entity/card_relation.py +13 -0
- syrtis_python_orm/entity/chunk.py +11 -0
- syrtis_python_orm/entity/content_type.py +13 -0
- syrtis_python_orm/entity/credential.py +11 -0
- syrtis_python_orm/entity/credential_parameter.py +13 -0
- syrtis_python_orm/entity/dashboard.py +11 -0
- syrtis_python_orm/entity/directory.py +11 -0
- syrtis_python_orm/entity/document.py +11 -0
- syrtis_python_orm/entity/document_directory.py +13 -0
- syrtis_python_orm/entity/embedding.py +11 -0
- syrtis_python_orm/entity/environment.py +13 -0
- syrtis_python_orm/entity/extension.py +11 -0
- syrtis_python_orm/entity/generated/__init__.py +0 -0
- syrtis_python_orm/entity/generated/artifact_generated.py +39 -0
- syrtis_python_orm/entity/generated/card_generated.py +48 -0
- syrtis_python_orm/entity/generated/card_message_generated.py +23 -0
- syrtis_python_orm/entity/generated/card_relation_generated.py +27 -0
- syrtis_python_orm/entity/generated/chunk_generated.py +30 -0
- syrtis_python_orm/entity/generated/content_type_generated.py +36 -0
- syrtis_python_orm/entity/generated/credential_generated.py +23 -0
- syrtis_python_orm/entity/generated/credential_parameter_generated.py +27 -0
- syrtis_python_orm/entity/generated/dashboard_generated.py +33 -0
- syrtis_python_orm/entity/generated/directory_generated.py +17 -0
- syrtis_python_orm/entity/generated/document_directory_generated.py +23 -0
- syrtis_python_orm/entity/generated/document_generated.py +42 -0
- syrtis_python_orm/entity/generated/embedding_generated.py +30 -0
- syrtis_python_orm/entity/generated/environment_generated.py +17 -0
- syrtis_python_orm/entity/generated/extension_generated.py +29 -0
- syrtis_python_orm/entity/generated/instruction_generated.py +33 -0
- syrtis_python_orm/entity/generated/job_generated.py +42 -0
- syrtis_python_orm/entity/generated/layer_generated.py +17 -0
- syrtis_python_orm/entity/generated/log_generated.py +84 -0
- syrtis_python_orm/entity/generated/message_generated.py +78 -0
- syrtis_python_orm/entity/generated/message_stamp_generated.py +24 -0
- syrtis_python_orm/entity/generated/model_generated.py +32 -0
- syrtis_python_orm/entity/generated/node_generated.py +17 -0
- syrtis_python_orm/entity/generated/operator_generated.py +20 -0
- syrtis_python_orm/entity/generated/operator_port_generated.py +30 -0
- syrtis_python_orm/entity/generated/panel_generated.py +57 -0
- syrtis_python_orm/entity/generated/panel_stamp_generated.py +21 -0
- syrtis_python_orm/entity/generated/pipeline_generated.py +45 -0
- syrtis_python_orm/entity/generated/pipeline_operator_generated.py +7 -0
- syrtis_python_orm/entity/generated/pipeline_projection_generated.py +27 -0
- syrtis_python_orm/entity/generated/project_access_generated.py +27 -0
- syrtis_python_orm/entity/generated/project_generated.py +33 -0
- syrtis_python_orm/entity/generated/projection_config_generated.py +36 -0
- syrtis_python_orm/entity/generated/projection_generated.py +33 -0
- syrtis_python_orm/entity/generated/projection_relation_generated.py +39 -0
- syrtis_python_orm/entity/generated/prompt_generated.py +66 -0
- syrtis_python_orm/entity/generated/request_generated.py +60 -0
- syrtis_python_orm/entity/generated/scenario_generated.py +57 -0
- syrtis_python_orm/entity/generated/schema_generated.py +14 -0
- syrtis_python_orm/entity/generated/session_generated.py +45 -0
- syrtis_python_orm/entity/generated/session_group_generated.py +27 -0
- syrtis_python_orm/entity/generated/slot_config_generated.py +27 -0
- syrtis_python_orm/entity/generated/slot_generated.py +39 -0
- syrtis_python_orm/entity/generated/slot_message_generated.py +66 -0
- syrtis_python_orm/entity/generated/slot_message_stamp_generated.py +21 -0
- syrtis_python_orm/entity/generated/slot_relation_generated.py +30 -0
- syrtis_python_orm/entity/generated/source_generated.py +30 -0
- syrtis_python_orm/entity/generated/storage_content_type_generated.py +23 -0
- syrtis_python_orm/entity/generated/storage_generated.py +24 -0
- syrtis_python_orm/entity/generated/template_generated.py +30 -0
- syrtis_python_orm/entity/generated/timezone_generated.py +14 -0
- syrtis_python_orm/entity/generated/token_generated.py +21 -0
- syrtis_python_orm/entity/generated/trigger_config_generated.py +23 -0
- syrtis_python_orm/entity/generated/trigger_generated.py +17 -0
- syrtis_python_orm/entity/generated/user_config_generated.py +30 -0
- syrtis_python_orm/entity/generated/user_generated.py +38 -0
- syrtis_python_orm/entity/instruction.py +13 -0
- syrtis_python_orm/entity/job.py +11 -0
- syrtis_python_orm/entity/layer.py +11 -0
- syrtis_python_orm/entity/log.py +11 -0
- syrtis_python_orm/entity/message.py +11 -0
- syrtis_python_orm/entity/message_stamp.py +13 -0
- syrtis_python_orm/entity/model.py +11 -0
- syrtis_python_orm/entity/node.py +11 -0
- syrtis_python_orm/entity/operator.py +11 -0
- syrtis_python_orm/entity/operator_port.py +26 -0
- syrtis_python_orm/entity/panel.py +11 -0
- syrtis_python_orm/entity/panel_stamp.py +11 -0
- syrtis_python_orm/entity/pipeline.py +11 -0
- syrtis_python_orm/entity/pipeline_operator.py +13 -0
- syrtis_python_orm/entity/pipeline_projection.py +13 -0
- syrtis_python_orm/entity/project.py +11 -0
- syrtis_python_orm/entity/project_access.py +13 -0
- syrtis_python_orm/entity/projection.py +11 -0
- syrtis_python_orm/entity/projection_config.py +13 -0
- syrtis_python_orm/entity/projection_relation.py +13 -0
- syrtis_python_orm/entity/prompt.py +11 -0
- syrtis_python_orm/entity/request.py +11 -0
- syrtis_python_orm/entity/scenario.py +11 -0
- syrtis_python_orm/entity/schema.py +11 -0
- syrtis_python_orm/entity/session.py +11 -0
- syrtis_python_orm/entity/session_group.py +13 -0
- syrtis_python_orm/entity/slot.py +11 -0
- syrtis_python_orm/entity/slot_config.py +11 -0
- syrtis_python_orm/entity/slot_message.py +13 -0
- syrtis_python_orm/entity/slot_message_stamp.py +13 -0
- syrtis_python_orm/entity/slot_relation.py +13 -0
- syrtis_python_orm/entity/source.py +11 -0
- syrtis_python_orm/entity/storage.py +11 -0
- syrtis_python_orm/entity/storage_content_type.py +13 -0
- syrtis_python_orm/entity/template.py +11 -0
- syrtis_python_orm/entity/timezone.py +11 -0
- syrtis_python_orm/entity/token.py +11 -0
- syrtis_python_orm/entity/trigger.py +11 -0
- syrtis_python_orm/entity/trigger_config.py +13 -0
- syrtis_python_orm/entity/user.py +11 -0
- syrtis_python_orm/entity/user_config.py +11 -0
- syrtis_python_orm/py.typed +0 -0
- syrtis_python_orm/repository/__init__.py +0 -0
- syrtis_python_orm/repository/artifact_repository.py +18 -0
- syrtis_python_orm/repository/card_message_repository.py +11 -0
- syrtis_python_orm/repository/card_relation_repository.py +11 -0
- syrtis_python_orm/repository/card_repository.py +11 -0
- syrtis_python_orm/repository/chunk_repository.py +11 -0
- syrtis_python_orm/repository/content_type_repository.py +11 -0
- syrtis_python_orm/repository/credential_parameter_repository.py +11 -0
- syrtis_python_orm/repository/credential_repository.py +11 -0
- syrtis_python_orm/repository/dashboard_repository.py +11 -0
- syrtis_python_orm/repository/directory_repository.py +11 -0
- syrtis_python_orm/repository/document_directory_repository.py +11 -0
- syrtis_python_orm/repository/document_repository.py +11 -0
- syrtis_python_orm/repository/embedding_repository.py +11 -0
- syrtis_python_orm/repository/environment_repository.py +11 -0
- syrtis_python_orm/repository/extension_repository.py +11 -0
- syrtis_python_orm/repository/generated/__init__.py +0 -0
- syrtis_python_orm/repository/generated/artifact_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/card_message_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/card_relation_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/card_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/chunk_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/content_type_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/credential_parameter_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/credential_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/dashboard_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/directory_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/document_directory_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/document_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/embedding_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/environment_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/extension_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/instruction_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/job_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/layer_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/log_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/message_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/message_stamp_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/model_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/node_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/operator_port_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/operator_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/panel_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/panel_stamp_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/pipeline_operator_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/pipeline_projection_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/pipeline_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/project_access_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/project_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/projection_config_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/projection_relation_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/projection_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/prompt_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/request_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/scenario_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/schema_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/session_group_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/session_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/slot_config_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/slot_message_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/slot_message_stamp_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/slot_relation_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/slot_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/source_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/storage_content_type_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/storage_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/template_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/timezone_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/token_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/trigger_config_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/trigger_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/user_config_repository_generated.py +11 -0
- syrtis_python_orm/repository/generated/user_repository_generated.py +11 -0
- syrtis_python_orm/repository/instruction_repository.py +11 -0
- syrtis_python_orm/repository/job_repository.py +11 -0
- syrtis_python_orm/repository/layer_repository.py +11 -0
- syrtis_python_orm/repository/log_repository.py +11 -0
- syrtis_python_orm/repository/message_repository.py +11 -0
- syrtis_python_orm/repository/message_stamp_repository.py +11 -0
- syrtis_python_orm/repository/model_repository.py +11 -0
- syrtis_python_orm/repository/node_repository.py +11 -0
- syrtis_python_orm/repository/operator_port_repository.py +11 -0
- syrtis_python_orm/repository/operator_repository.py +11 -0
- syrtis_python_orm/repository/panel_repository.py +11 -0
- syrtis_python_orm/repository/panel_stamp_repository.py +11 -0
- syrtis_python_orm/repository/pipeline_operator_repository.py +11 -0
- syrtis_python_orm/repository/pipeline_projection_repository.py +11 -0
- syrtis_python_orm/repository/pipeline_repository.py +11 -0
- syrtis_python_orm/repository/project_access_repository.py +11 -0
- syrtis_python_orm/repository/project_repository.py +11 -0
- syrtis_python_orm/repository/projection_config_repository.py +11 -0
- syrtis_python_orm/repository/projection_relation_repository.py +11 -0
- syrtis_python_orm/repository/projection_repository.py +11 -0
- syrtis_python_orm/repository/prompt_repository.py +11 -0
- syrtis_python_orm/repository/request_repository.py +11 -0
- syrtis_python_orm/repository/scenario_repository.py +11 -0
- syrtis_python_orm/repository/schema_repository.py +11 -0
- syrtis_python_orm/repository/session_group_repository.py +11 -0
- syrtis_python_orm/repository/session_repository.py +11 -0
- syrtis_python_orm/repository/slot_config_repository.py +11 -0
- syrtis_python_orm/repository/slot_message_repository.py +11 -0
- syrtis_python_orm/repository/slot_message_stamp_repository.py +11 -0
- syrtis_python_orm/repository/slot_relation_repository.py +11 -0
- syrtis_python_orm/repository/slot_repository.py +11 -0
- syrtis_python_orm/repository/source_repository.py +11 -0
- syrtis_python_orm/repository/storage_content_type_repository.py +11 -0
- syrtis_python_orm/repository/storage_repository.py +11 -0
- syrtis_python_orm/repository/template_repository.py +11 -0
- syrtis_python_orm/repository/timezone_repository.py +11 -0
- syrtis_python_orm/repository/token_repository.py +11 -0
- syrtis_python_orm/repository/trigger_config_repository.py +11 -0
- syrtis_python_orm/repository/trigger_repository.py +11 -0
- syrtis_python_orm/repository/user_config_repository.py +11 -0
- syrtis_python_orm/repository/user_repository.py +11 -0
- syrtis_python_orm-4.0.1.dist-info/METADATA +108 -0
- syrtis_python_orm-4.0.1.dist-info/RECORD +298 -0
- syrtis_python_orm-4.0.1.dist-info/WHEEL +4 -0
- syrtis_python_orm-4.0.1.dist-info/entry_points.txt +4 -0
- syrtis_syrtis_python_orm/__init__.py +0 -0
- syrtis_syrtis_python_orm/py.typed +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import DateTime, Float, ForeignKey, Integer, String, Text
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ScenarioGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'scenario'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def default_entrypoint_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('card.id'), nullable=True)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def defaultEntrypoint(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Card', foreign_keys='Scenario.default_entrypoint_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def description(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Text, nullable=True)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def environment(cls) -> Mapped[object]:
|
|
26
|
+
return relationship('Environment', foreign_keys='Scenario.environment_id', lazy='select')
|
|
27
|
+
@declared_attr
|
|
28
|
+
def environment_id(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(Integer, ForeignKey('environment.id'), nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def positionX(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column('position_x', Integer, nullable=True)
|
|
33
|
+
@declared_attr
|
|
34
|
+
def positionY(cls) -> Mapped[object]:
|
|
35
|
+
return mapped_column('position_y', Integer, nullable=True)
|
|
36
|
+
@declared_attr
|
|
37
|
+
def project(cls) -> Mapped[object]:
|
|
38
|
+
return relationship('Project', foreign_keys='Scenario.project_id', lazy='select')
|
|
39
|
+
@declared_attr
|
|
40
|
+
def project_id(cls) -> Mapped[object]:
|
|
41
|
+
return mapped_column(Integer, ForeignKey('project.id'), nullable=False)
|
|
42
|
+
@declared_attr
|
|
43
|
+
def secureId(cls) -> Mapped[object]:
|
|
44
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
45
|
+
@declared_attr
|
|
46
|
+
def title(cls) -> Mapped[object]:
|
|
47
|
+
return mapped_column(String(255), nullable=False)
|
|
48
|
+
@declared_attr
|
|
49
|
+
def user(cls) -> Mapped[object]:
|
|
50
|
+
return relationship('User', foreign_keys='Scenario.user_id', lazy='select')
|
|
51
|
+
|
|
52
|
+
@declared_attr
|
|
53
|
+
def user_id(cls) -> Mapped[object]:
|
|
54
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
55
|
+
@declared_attr
|
|
56
|
+
def zoom(cls) -> Mapped[object]:
|
|
57
|
+
return mapped_column(Float, nullable=True)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import JSON
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SchemaGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'schema'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def body(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(JSON, nullable=False)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import DateTime, ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SessionGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'session'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def dateLastAccess(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('date_last_access', DateTime, nullable=True)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def scenario(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Scenario', foreign_keys='Session.scenario_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def scenario_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('scenario.id'), nullable=False)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def secureId(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def session_group_id(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(Integer, ForeignKey('session_group.id'), nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def sessionGroup(cls) -> Mapped[object]:
|
|
32
|
+
return relationship('SessionGroup', foreign_keys='Session.session_group_id', lazy='select')
|
|
33
|
+
@declared_attr
|
|
34
|
+
def status(cls) -> Mapped[object]:
|
|
35
|
+
return mapped_column(String(30), nullable=False)
|
|
36
|
+
@declared_attr
|
|
37
|
+
def title(cls) -> Mapped[object]:
|
|
38
|
+
return mapped_column(String(255), nullable=False)
|
|
39
|
+
@declared_attr
|
|
40
|
+
def user(cls) -> Mapped[object]:
|
|
41
|
+
return relationship('User', foreign_keys='Session.user_id', lazy='select')
|
|
42
|
+
|
|
43
|
+
@declared_attr
|
|
44
|
+
def user_id(cls) -> Mapped[object]:
|
|
45
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import Boolean, ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SessionGroupGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'session_group'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def featured(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(Boolean, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def name(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(String(255), nullable=True)
|
|
17
|
+
|
|
18
|
+
@declared_attr
|
|
19
|
+
def title(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(String(255), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def user(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('User', foreign_keys='SessionGroup.user_id', lazy='select')
|
|
24
|
+
|
|
25
|
+
@declared_attr
|
|
26
|
+
def user_id(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=True)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import Boolean, ForeignKey, Integer, String, Text
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SlotConfigGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'slot_config'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def expression(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(Boolean, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def name(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(String(255), nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def slot(cls) -> Mapped[object]:
|
|
19
|
+
return relationship('Slot', foreign_keys='SlotConfig.slot_id', lazy='select')
|
|
20
|
+
|
|
21
|
+
@declared_attr
|
|
22
|
+
def slot_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('slot.id'), nullable=False)
|
|
24
|
+
|
|
25
|
+
@declared_attr
|
|
26
|
+
def value(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column(Text, nullable=True)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SlotGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'slot'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def job(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Job', foreign_keys='Slot.job_id', lazy='select')
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def job_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('job.id'), nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def node(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Node', foreign_keys='Slot.node_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def node_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('node.id'), nullable=False)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def positionX(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column('position_x', Integer, nullable=False)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def positionY(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column('position_y', Integer, nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def secureId(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
33
|
+
@declared_attr
|
|
34
|
+
def title(cls) -> Mapped[object]:
|
|
35
|
+
return mapped_column(String(255), nullable=False)
|
|
36
|
+
|
|
37
|
+
@declared_attr
|
|
38
|
+
def type(cls) -> Mapped[object]:
|
|
39
|
+
return mapped_column(String(120), nullable=False)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import JSON, ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SlotMessageGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'slot_message'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def collection(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(String(60), nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def contentType(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column('content_type', String(30), nullable=True)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def direction(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column(String(6), nullable=True)
|
|
20
|
+
@declared_attr
|
|
21
|
+
def entity_metadata(cls) -> Mapped[object]:
|
|
22
|
+
return mapped_column('metadata', JSON, nullable=True)
|
|
23
|
+
@declared_attr
|
|
24
|
+
def format(cls) -> Mapped[object]:
|
|
25
|
+
return mapped_column(String(120), nullable=True)
|
|
26
|
+
@declared_attr
|
|
27
|
+
def max(cls) -> Mapped[object]:
|
|
28
|
+
return mapped_column(Integer, nullable=True)
|
|
29
|
+
@declared_attr
|
|
30
|
+
def message(cls) -> Mapped[object]:
|
|
31
|
+
return relationship('Message', foreign_keys='SlotMessage.message_id', lazy='select')
|
|
32
|
+
@declared_attr
|
|
33
|
+
def message_id(cls) -> Mapped[object]:
|
|
34
|
+
return mapped_column(Integer, ForeignKey('message.id'), nullable=True)
|
|
35
|
+
@declared_attr
|
|
36
|
+
def name(cls) -> Mapped[object]:
|
|
37
|
+
return mapped_column(String(255), nullable=True)
|
|
38
|
+
@declared_attr
|
|
39
|
+
def orderBy(cls) -> Mapped[object]:
|
|
40
|
+
return mapped_column('order_by', String(60), nullable=True)
|
|
41
|
+
@declared_attr
|
|
42
|
+
def orderDirection(cls) -> Mapped[object]:
|
|
43
|
+
return mapped_column('order_direction', String(4), nullable=True)
|
|
44
|
+
|
|
45
|
+
@declared_attr
|
|
46
|
+
def position(cls) -> Mapped[object]:
|
|
47
|
+
return mapped_column(Integer, nullable=False)
|
|
48
|
+
@declared_attr
|
|
49
|
+
def slot(cls) -> Mapped[object]:
|
|
50
|
+
return relationship('Slot', foreign_keys='SlotMessage.slot_id', lazy='select')
|
|
51
|
+
@declared_attr
|
|
52
|
+
def slot_id(cls) -> Mapped[object]:
|
|
53
|
+
return mapped_column(Integer, ForeignKey('slot.id'), nullable=False)
|
|
54
|
+
@declared_attr
|
|
55
|
+
def source(cls) -> Mapped[object]:
|
|
56
|
+
return mapped_column(String(60), nullable=True)
|
|
57
|
+
@declared_attr
|
|
58
|
+
def template(cls) -> Mapped[object]:
|
|
59
|
+
return relationship('Template', foreign_keys='SlotMessage.template_id', lazy='select')
|
|
60
|
+
|
|
61
|
+
@declared_attr
|
|
62
|
+
def template_id(cls) -> Mapped[object]:
|
|
63
|
+
return mapped_column(Integer, ForeignKey('template.id'), nullable=True)
|
|
64
|
+
@declared_attr
|
|
65
|
+
def type(cls) -> Mapped[object]:
|
|
66
|
+
return mapped_column(String(120), nullable=False)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SlotMessageStampGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'slot_message_stamp'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def name(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(String(255), nullable=False)
|
|
15
|
+
|
|
16
|
+
@declared_attr
|
|
17
|
+
def slot_message_id(cls) -> Mapped[object]:
|
|
18
|
+
return mapped_column(Integer, ForeignKey('slot_message.id'), nullable=False)
|
|
19
|
+
@declared_attr
|
|
20
|
+
def slotMessage(cls) -> Mapped[object]:
|
|
21
|
+
return relationship('SlotMessage', foreign_keys='SlotMessageStamp.slot_message_id', lazy='select')
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SlotRelationGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'slot_relation'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def portSource(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column('port_source', String(60), nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def portTarget(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('port_target', String(60), nullable=False)
|
|
18
|
+
|
|
19
|
+
@declared_attr
|
|
20
|
+
def slot_source_id(cls) -> Mapped[object]:
|
|
21
|
+
return mapped_column(Integer, ForeignKey('slot.id'), nullable=False)
|
|
22
|
+
@declared_attr
|
|
23
|
+
def slot_target_id(cls) -> Mapped[object]:
|
|
24
|
+
return mapped_column(Integer, ForeignKey('slot.id'), nullable=False)
|
|
25
|
+
@declared_attr
|
|
26
|
+
def slotSource(cls) -> Mapped[object]:
|
|
27
|
+
return relationship('Slot', foreign_keys='SlotRelation.slot_source_id', lazy='select')
|
|
28
|
+
@declared_attr
|
|
29
|
+
def slotTarget(cls) -> Mapped[object]:
|
|
30
|
+
return relationship('Slot', foreign_keys='SlotRelation.slot_target_id', lazy='select')
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SourceGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'source'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def credential(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Credential', foreign_keys='Source.credential_id', lazy='select')
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def credential_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('credential.id'), nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def project(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Project', foreign_keys='Source.project_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def project_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('project.id'), nullable=False)
|
|
24
|
+
|
|
25
|
+
@declared_attr
|
|
26
|
+
def secureId(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
28
|
+
@declared_attr
|
|
29
|
+
def title(cls) -> Mapped[object]:
|
|
30
|
+
return mapped_column(String(255), nullable=False)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey, Integer
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class StorageContentTypeGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'storage_content_type'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def content_type_id(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(Integer, ForeignKey('content_type.id'), nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def contentType(cls) -> Mapped[object]:
|
|
17
|
+
return relationship('ContentType', foreign_keys='StorageContentType.content_type_id', lazy='select')
|
|
18
|
+
@declared_attr
|
|
19
|
+
def storage(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Storage', foreign_keys='StorageContentType.storage_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def storage_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('storage.id'), nullable=False)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class StorageGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'storage'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def credential(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Credential', foreign_keys='Storage.credential_id', lazy='select')
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def credential_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('credential.id'), nullable=False)
|
|
18
|
+
|
|
19
|
+
@declared_attr
|
|
20
|
+
def secureId(cls) -> Mapped[object]:
|
|
21
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
22
|
+
@declared_attr
|
|
23
|
+
def title(cls) -> Mapped[object]:
|
|
24
|
+
return mapped_column(String(255), nullable=False)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import DateTime, ForeignKey, Integer, String, Text
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TemplateGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'template'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def content(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(Text, nullable=True)
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def name(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(String(255), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def scenario(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('Scenario', foreign_keys='Template.scenario_id', lazy='select')
|
|
24
|
+
|
|
25
|
+
@declared_attr
|
|
26
|
+
def scenario_id(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column(Integer, ForeignKey('scenario.id'), nullable=False)
|
|
28
|
+
@declared_attr
|
|
29
|
+
def secureId(cls) -> Mapped[object]:
|
|
30
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TimezoneGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'timezone'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def name(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(String(255), nullable=False)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TokenGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'token'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def user(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('User', foreign_keys='Token.user_id', lazy='select')
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def user_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
18
|
+
|
|
19
|
+
@declared_attr
|
|
20
|
+
def value(cls) -> Mapped[object]:
|
|
21
|
+
return mapped_column(String(255), nullable=True)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import Boolean, String, Text
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TriggerConfigGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'trigger_config'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def expression(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(Boolean, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def name(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(String(255), nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def secureId(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
20
|
+
|
|
21
|
+
@declared_attr
|
|
22
|
+
def value(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Text, nullable=True)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TriggerGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'trigger'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def secureId(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def type(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(String(120), nullable=False)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import JSON, Boolean, ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UserConfigGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'user_config'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def key(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(String(128), nullable=True)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def preload(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Boolean, nullable=False)
|
|
17
|
+
|
|
18
|
+
@declared_attr
|
|
19
|
+
def secureId(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def user(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('User', foreign_keys='UserConfig.user_id', lazy='select')
|
|
24
|
+
|
|
25
|
+
@declared_attr
|
|
26
|
+
def user_id(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
28
|
+
@declared_attr
|
|
29
|
+
def value(cls) -> Mapped[object]:
|
|
30
|
+
return mapped_column(JSON, nullable=True)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import JSON, DateTime, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UserGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'user'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def dateLastLogin(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column('date_last_login', DateTime, nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def email(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column(String(255), nullable=False)
|
|
20
|
+
@declared_attr
|
|
21
|
+
def firstName(cls) -> Mapped[object]:
|
|
22
|
+
return mapped_column('first_name', String(100), nullable=True)
|
|
23
|
+
@declared_attr
|
|
24
|
+
def lastName(cls) -> Mapped[object]:
|
|
25
|
+
return mapped_column('last_name', String(100), nullable=True)
|
|
26
|
+
@declared_attr
|
|
27
|
+
def password(cls) -> Mapped[object]:
|
|
28
|
+
return mapped_column(String, nullable=False)
|
|
29
|
+
@declared_attr
|
|
30
|
+
def roles(cls) -> Mapped[object]:
|
|
31
|
+
return mapped_column(JSON, nullable=False)
|
|
32
|
+
@declared_attr
|
|
33
|
+
def secureId(cls) -> Mapped[object]:
|
|
34
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
35
|
+
|
|
36
|
+
@declared_attr
|
|
37
|
+
def username(cls) -> Mapped[object]:
|
|
38
|
+
return mapped_column(String(180), nullable=False, unique=True)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_orm.entity.abstract_entity import AbstractEntity
|
|
4
|
+
|
|
5
|
+
from syrtis_python_orm.entity.generated.instruction_generated import (
|
|
6
|
+
InstructionGenerated,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
__all__ = ["Instruction", "InstructionGenerated"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Instruction(InstructionGenerated, AbstractEntity):
|
|
13
|
+
pass
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_orm.entity.abstract_entity import AbstractEntity
|
|
4
|
+
|
|
5
|
+
from syrtis_python_orm.entity.generated.job_generated import JobGenerated
|
|
6
|
+
|
|
7
|
+
__all__ = ["Job", "JobGenerated"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Job(JobGenerated, AbstractEntity):
|
|
11
|
+
pass
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_orm.entity.abstract_entity import AbstractEntity
|
|
4
|
+
|
|
5
|
+
from syrtis_python_orm.entity.generated.layer_generated import LayerGenerated
|
|
6
|
+
|
|
7
|
+
__all__ = ["Layer", "LayerGenerated"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Layer(LayerGenerated, AbstractEntity):
|
|
11
|
+
pass
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_orm.entity.abstract_entity import AbstractEntity
|
|
4
|
+
|
|
5
|
+
from syrtis_python_orm.entity.generated.log_generated import LogGenerated
|
|
6
|
+
|
|
7
|
+
__all__ = ["Log", "LogGenerated"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Log(LogGenerated, AbstractEntity):
|
|
11
|
+
pass
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_orm.entity.abstract_entity import AbstractEntity
|
|
4
|
+
|
|
5
|
+
from syrtis_python_orm.entity.generated.message_generated import MessageGenerated
|
|
6
|
+
|
|
7
|
+
__all__ = ["Message", "MessageGenerated"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Message(MessageGenerated, AbstractEntity):
|
|
11
|
+
pass
|