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,78 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import JSON, DateTime, ForeignKey, Integer, String, Text
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MessageGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'message'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def content(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(Text, nullable=True)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def contentType(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('content_type', String(30), nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def entity_metadata(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column('metadata', JSON, nullable=True)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def expiration_message_id(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(Integer, ForeignKey('message.id'), nullable=True)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def expirationMessage(cls) -> Mapped[object]:
|
|
29
|
+
return relationship('Message', foreign_keys='Message.expiration_message_id', lazy='select')
|
|
30
|
+
@declared_attr
|
|
31
|
+
def format(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column(String(120), nullable=False)
|
|
33
|
+
@declared_attr
|
|
34
|
+
def model(cls) -> Mapped[object]:
|
|
35
|
+
return relationship('Model', foreign_keys='Message.model_id', lazy='select')
|
|
36
|
+
@declared_attr
|
|
37
|
+
def model_id(cls) -> Mapped[object]:
|
|
38
|
+
return mapped_column(Integer, ForeignKey('model.id'), nullable=True)
|
|
39
|
+
@declared_attr
|
|
40
|
+
def name(cls) -> Mapped[object]:
|
|
41
|
+
return mapped_column(String(255), nullable=True)
|
|
42
|
+
@declared_attr
|
|
43
|
+
def origin(cls) -> Mapped[object]:
|
|
44
|
+
return mapped_column(String(30), nullable=False)
|
|
45
|
+
@declared_attr
|
|
46
|
+
def request(cls) -> Mapped[object]:
|
|
47
|
+
return relationship('Request', foreign_keys='Message.request_id', lazy='select')
|
|
48
|
+
@declared_attr
|
|
49
|
+
def request_id(cls) -> Mapped[object]:
|
|
50
|
+
return mapped_column(Integer, ForeignKey('request.id'), nullable=True)
|
|
51
|
+
@declared_attr
|
|
52
|
+
def secureId(cls) -> Mapped[object]:
|
|
53
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
54
|
+
@declared_attr
|
|
55
|
+
def session(cls) -> Mapped[object]:
|
|
56
|
+
return relationship('Session', foreign_keys='Message.session_id', lazy='select')
|
|
57
|
+
@declared_attr
|
|
58
|
+
def session_id(cls) -> Mapped[object]:
|
|
59
|
+
return mapped_column(Integer, ForeignKey('session.id'), nullable=True)
|
|
60
|
+
@declared_attr
|
|
61
|
+
def slot(cls) -> Mapped[object]:
|
|
62
|
+
return relationship('Slot', foreign_keys='Message.slot_id', lazy='select')
|
|
63
|
+
@declared_attr
|
|
64
|
+
def slot_id(cls) -> Mapped[object]:
|
|
65
|
+
return mapped_column(Integer, ForeignKey('slot.id'), nullable=True)
|
|
66
|
+
@declared_attr
|
|
67
|
+
def target(cls) -> Mapped[object]:
|
|
68
|
+
return relationship('Message', foreign_keys='Message.target_id', lazy='select')
|
|
69
|
+
|
|
70
|
+
@declared_attr
|
|
71
|
+
def target_id(cls) -> Mapped[object]:
|
|
72
|
+
return mapped_column(Integer, ForeignKey('message.id'), nullable=True)
|
|
73
|
+
@declared_attr
|
|
74
|
+
def versionMajor(cls) -> Mapped[object]:
|
|
75
|
+
return mapped_column('version_major', Integer, nullable=False)
|
|
76
|
+
@declared_attr
|
|
77
|
+
def versionMinor(cls) -> Mapped[object]:
|
|
78
|
+
return mapped_column('version_minor', Integer, 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 MessageStampGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'message_stamp'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def message(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Message', foreign_keys='MessageStamp.message_id', lazy='select')
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def message_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('message.id'), nullable=False)
|
|
18
|
+
|
|
19
|
+
@declared_attr
|
|
20
|
+
def name(cls) -> Mapped[object]:
|
|
21
|
+
return mapped_column(String(255), nullable=False)
|
|
22
|
+
@declared_attr
|
|
23
|
+
def secureId(cls) -> Mapped[object]:
|
|
24
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import Numeric, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ModelGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'model'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def family(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(String(255), nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def inputTokenPrice(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('input_token_price', Numeric(12, 10), nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def name(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(String(255), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def outputTokenPrice(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column('output_token_price', Numeric(12, 10), 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 tokenCarbon(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column('token_carbon', Numeric(12, 10), nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def type(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column(String(120), nullable=False)
|
|
@@ -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 NodeGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'node'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def secureId(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def type(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(String(120), nullable=False)
|
|
@@ -0,0 +1,20 @@
|
|
|
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 OperatorGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'operator'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def name(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(String(255), nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def secureId(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def title(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(String(255), nullable=False)
|
|
@@ -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 OperatorPortGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'operator_port'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def direction(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(String(6), nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def name(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(String(255), nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def operator(cls) -> Mapped[object]:
|
|
19
|
+
return relationship('Operator', foreign_keys='OperatorPort.operator_id', lazy='select')
|
|
20
|
+
|
|
21
|
+
@declared_attr
|
|
22
|
+
def operator_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('operator.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,57 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import Float, ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class PanelGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'panel'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def contentType(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column('content_type', String(30), nullable=True)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def dashboard(cls) -> Mapped[object]:
|
|
16
|
+
return relationship('Dashboard', foreign_keys='Panel.dashboard_id', lazy='select')
|
|
17
|
+
|
|
18
|
+
@declared_attr
|
|
19
|
+
def dashboard_id(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(Integer, ForeignKey('dashboard.id'), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def format(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(String(120), nullable=True)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def height(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(Float, nullable=True)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def max(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(Integer, nullable=True)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def name(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column(String(255), nullable=True)
|
|
33
|
+
@declared_attr
|
|
34
|
+
def orderBy(cls) -> Mapped[object]:
|
|
35
|
+
return mapped_column('order_by', String(60), nullable=True)
|
|
36
|
+
@declared_attr
|
|
37
|
+
def orderDirection(cls) -> Mapped[object]:
|
|
38
|
+
return mapped_column('order_direction', String(4), nullable=True)
|
|
39
|
+
@declared_attr
|
|
40
|
+
def positionX(cls) -> Mapped[object]:
|
|
41
|
+
return mapped_column('position_x', Integer, nullable=True)
|
|
42
|
+
@declared_attr
|
|
43
|
+
def positionY(cls) -> Mapped[object]:
|
|
44
|
+
return mapped_column('position_y', Integer, nullable=True)
|
|
45
|
+
|
|
46
|
+
@declared_attr
|
|
47
|
+
def secureId(cls) -> Mapped[object]:
|
|
48
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
49
|
+
@declared_attr
|
|
50
|
+
def title(cls) -> Mapped[object]:
|
|
51
|
+
return mapped_column(String(255), nullable=True)
|
|
52
|
+
@declared_attr
|
|
53
|
+
def type(cls) -> Mapped[object]:
|
|
54
|
+
return mapped_column(String(120), nullable=False)
|
|
55
|
+
@declared_attr
|
|
56
|
+
def width(cls) -> Mapped[object]:
|
|
57
|
+
return mapped_column(Float, nullable=True)
|
|
@@ -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 PanelStampGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'panel_stamp'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def name(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(String(255), nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def panel(cls) -> Mapped[object]:
|
|
17
|
+
return relationship('Panel', foreign_keys='PanelStamp.panel_id', lazy='select')
|
|
18
|
+
|
|
19
|
+
@declared_attr
|
|
20
|
+
def panel_id(cls) -> Mapped[object]:
|
|
21
|
+
return mapped_column(Integer, ForeignKey('panel.id'), nullable=False)
|
|
@@ -0,0 +1,45 @@
|
|
|
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 PipelineGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'pipeline'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def entrypoint(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Projection', foreign_keys='Pipeline.entrypoint_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def entrypoint_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('projection.id'), nullable=True)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def environment(cls) -> Mapped[object]:
|
|
19
|
+
return relationship('Environment', foreign_keys='Pipeline.environment_id', lazy='select')
|
|
20
|
+
@declared_attr
|
|
21
|
+
def environment_id(cls) -> Mapped[object]:
|
|
22
|
+
return mapped_column(Integer, ForeignKey('environment.id'), nullable=False)
|
|
23
|
+
@declared_attr
|
|
24
|
+
def project(cls) -> Mapped[object]:
|
|
25
|
+
return relationship('Project', foreign_keys='Pipeline.project_id', lazy='select')
|
|
26
|
+
|
|
27
|
+
@declared_attr
|
|
28
|
+
def project_id(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(Integer, ForeignKey('project.id'), nullable=False)
|
|
30
|
+
|
|
31
|
+
@declared_attr
|
|
32
|
+
def secureId(cls) -> Mapped[object]:
|
|
33
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
34
|
+
@declared_attr
|
|
35
|
+
def title(cls) -> Mapped[object]:
|
|
36
|
+
return mapped_column(String(255), nullable=False)
|
|
37
|
+
@declared_attr
|
|
38
|
+
def versionMajor(cls) -> Mapped[object]:
|
|
39
|
+
return mapped_column('version_major', Integer, nullable=False)
|
|
40
|
+
@declared_attr
|
|
41
|
+
def versionMinor(cls) -> Mapped[object]:
|
|
42
|
+
return mapped_column('version_minor', Integer, nullable=False)
|
|
43
|
+
@declared_attr
|
|
44
|
+
def versionPatch(cls) -> Mapped[object]:
|
|
45
|
+
return mapped_column('version_patch', Integer, nullable=False)
|
|
@@ -0,0 +1,27 @@
|
|
|
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 PipelineProjectionGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'pipeline_projection'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def pipeline(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Pipeline', foreign_keys='PipelineProjection.pipeline_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def pipeline_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('pipeline.id'), nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def projection(cls) -> Mapped[object]:
|
|
19
|
+
return relationship('Projection', foreign_keys='PipelineProjection.projection_id', lazy='select')
|
|
20
|
+
|
|
21
|
+
@declared_attr
|
|
22
|
+
def projection_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('projection.id'), nullable=False)
|
|
24
|
+
|
|
25
|
+
@declared_attr
|
|
26
|
+
def secureId(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
@@ -0,0 +1,27 @@
|
|
|
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 ProjectAccessGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'project_access'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def project(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Project', foreign_keys='ProjectAccess.project_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def project_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('project.id'), 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='ProjectAccess.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)
|
|
@@ -0,0 +1,33 @@
|
|
|
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 ProjectGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'project'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def description(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Text, nullable=True)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def emoji(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column(String(32), nullable=False)
|
|
20
|
+
@declared_attr
|
|
21
|
+
def secureId(cls) -> Mapped[object]:
|
|
22
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
23
|
+
|
|
24
|
+
@declared_attr
|
|
25
|
+
def title(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(String(255), nullable=False)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def user(cls) -> Mapped[object]:
|
|
29
|
+
return relationship('User', foreign_keys='Project.user_id', lazy='select')
|
|
30
|
+
|
|
31
|
+
@declared_attr
|
|
32
|
+
def user_id(cls) -> Mapped[object]:
|
|
33
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
@@ -0,0 +1,36 @@
|
|
|
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 ProjectionConfigGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'projection_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 operator_port_id(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column(Integer, ForeignKey('operator_port.id'), nullable=True)
|
|
20
|
+
@declared_attr
|
|
21
|
+
def operatorPort(cls) -> Mapped[object]:
|
|
22
|
+
return relationship('OperatorPort', foreign_keys='ProjectionConfig.operator_port_id', lazy='select')
|
|
23
|
+
@declared_attr
|
|
24
|
+
def projection(cls) -> Mapped[object]:
|
|
25
|
+
return relationship('Projection', foreign_keys='ProjectionConfig.projection_id', lazy='select')
|
|
26
|
+
|
|
27
|
+
@declared_attr
|
|
28
|
+
def projection_id(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(Integer, ForeignKey('projection.id'), nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def secureId(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
33
|
+
|
|
34
|
+
@declared_attr
|
|
35
|
+
def value(cls) -> Mapped[object]:
|
|
36
|
+
return mapped_column(Text, nullable=True)
|
|
@@ -0,0 +1,33 @@
|
|
|
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 ProjectionGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'projection'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def operator(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Operator', foreign_keys='Projection.operator_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def operator_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('operator.id'), nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def pipeline(cls) -> Mapped[object]:
|
|
19
|
+
return relationship('Pipeline', foreign_keys='Projection.pipeline_id', lazy='select')
|
|
20
|
+
|
|
21
|
+
@declared_attr
|
|
22
|
+
def pipeline_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('pipeline.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 source(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(String(60), nullable=True)
|
|
30
|
+
|
|
31
|
+
@declared_attr
|
|
32
|
+
def title(cls) -> Mapped[object]:
|
|
33
|
+
return mapped_column(String(255), nullable=False)
|
|
@@ -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 ProjectionRelationGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'projection_relation'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def port_source_id(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(Integer, ForeignKey('operator_port.id'), nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def port_target_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('operator_port.id'), nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def portSource(cls) -> Mapped[object]:
|
|
19
|
+
return relationship('OperatorPort', foreign_keys='ProjectionRelation.port_source_id', lazy='select')
|
|
20
|
+
@declared_attr
|
|
21
|
+
def portTarget(cls) -> Mapped[object]:
|
|
22
|
+
return relationship('OperatorPort', foreign_keys='ProjectionRelation.port_target_id', lazy='select')
|
|
23
|
+
|
|
24
|
+
@declared_attr
|
|
25
|
+
def projection_source_id(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(Integer, ForeignKey('projection.id'), nullable=False)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def projection_target_id(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(Integer, ForeignKey('projection.id'), nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def projectionSource(cls) -> Mapped[object]:
|
|
32
|
+
return relationship('Projection', foreign_keys='ProjectionRelation.projection_source_id', lazy='select')
|
|
33
|
+
@declared_attr
|
|
34
|
+
def projectionTarget(cls) -> Mapped[object]:
|
|
35
|
+
return relationship('Projection', foreign_keys='ProjectionRelation.projection_target_id', lazy='select')
|
|
36
|
+
|
|
37
|
+
@declared_attr
|
|
38
|
+
def secureId(cls) -> Mapped[object]:
|
|
39
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
@@ -0,0 +1,66 @@
|
|
|
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 PromptGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'prompt'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def category(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(String(255), nullable=False)
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def content(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Text, nullable=True)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def contentType(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column('content_type', String(30), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def entityId(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column('entity_id', Integer, nullable=True)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def entityType(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column('entity_type', String(255), nullable=True)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def message(cls) -> Mapped[object]:
|
|
32
|
+
return relationship('Message', foreign_keys='Prompt.message_id', lazy='select')
|
|
33
|
+
@declared_attr
|
|
34
|
+
def message_id(cls) -> Mapped[object]:
|
|
35
|
+
return mapped_column(Integer, ForeignKey('message.id'), nullable=True)
|
|
36
|
+
@declared_attr
|
|
37
|
+
def name(cls) -> Mapped[object]:
|
|
38
|
+
return mapped_column(String(255), nullable=True)
|
|
39
|
+
@declared_attr
|
|
40
|
+
def request(cls) -> Mapped[object]:
|
|
41
|
+
return relationship('Request', foreign_keys='Prompt.request_id', lazy='select')
|
|
42
|
+
@declared_attr
|
|
43
|
+
def request_id(cls) -> Mapped[object]:
|
|
44
|
+
return mapped_column(Integer, ForeignKey('request.id'), nullable=True)
|
|
45
|
+
@declared_attr
|
|
46
|
+
def session(cls) -> Mapped[object]:
|
|
47
|
+
return relationship('Session', foreign_keys='Prompt.session_id', lazy='select')
|
|
48
|
+
|
|
49
|
+
@declared_attr
|
|
50
|
+
def session_id(cls) -> Mapped[object]:
|
|
51
|
+
return mapped_column(Integer, ForeignKey('session.id'), nullable=False)
|
|
52
|
+
@declared_attr
|
|
53
|
+
def slot(cls) -> Mapped[object]:
|
|
54
|
+
return relationship('Slot', foreign_keys='Prompt.slot_id', lazy='select')
|
|
55
|
+
@declared_attr
|
|
56
|
+
def slot_id(cls) -> Mapped[object]:
|
|
57
|
+
return mapped_column(Integer, ForeignKey('slot.id'), nullable=True)
|
|
58
|
+
@declared_attr
|
|
59
|
+
def target(cls) -> Mapped[object]:
|
|
60
|
+
return relationship('Prompt', foreign_keys='Prompt.target_id', lazy='select')
|
|
61
|
+
@declared_attr
|
|
62
|
+
def target_id(cls) -> Mapped[object]:
|
|
63
|
+
return mapped_column(Integer, ForeignKey('prompt.id'), nullable=True)
|
|
64
|
+
@declared_attr
|
|
65
|
+
def type(cls) -> Mapped[object]:
|
|
66
|
+
return mapped_column(String(120), nullable=False)
|
|
@@ -0,0 +1,60 @@
|
|
|
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 RequestGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'request'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def card(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Card', foreign_keys='Request.card_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def card_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('card.id'), nullable=True)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def dateCompleted(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column('date_completed', DateTime, nullable=True)
|
|
20
|
+
@declared_attr
|
|
21
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
22
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
23
|
+
@declared_attr
|
|
24
|
+
def lastEvent(cls) -> Mapped[object]:
|
|
25
|
+
return mapped_column('last_event', String(60), nullable=True)
|
|
26
|
+
@declared_attr
|
|
27
|
+
def parent(cls) -> Mapped[object]:
|
|
28
|
+
return relationship('Request', foreign_keys='Request.parent_id', lazy='select')
|
|
29
|
+
@declared_attr
|
|
30
|
+
def parent_id(cls) -> Mapped[object]:
|
|
31
|
+
return mapped_column(Integer, ForeignKey('request.id'), nullable=True)
|
|
32
|
+
@declared_attr
|
|
33
|
+
def projection(cls) -> Mapped[object]:
|
|
34
|
+
return relationship('Projection', foreign_keys='Request.projection_id', lazy='select')
|
|
35
|
+
@declared_attr
|
|
36
|
+
def projection_id(cls) -> Mapped[object]:
|
|
37
|
+
return mapped_column(Integer, ForeignKey('projection.id'), nullable=True)
|
|
38
|
+
@declared_attr
|
|
39
|
+
def secureId(cls) -> Mapped[object]:
|
|
40
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
41
|
+
@declared_attr
|
|
42
|
+
def session(cls) -> Mapped[object]:
|
|
43
|
+
return relationship('Session', foreign_keys='Request.session_id', lazy='select')
|
|
44
|
+
@declared_attr
|
|
45
|
+
def session_id(cls) -> Mapped[object]:
|
|
46
|
+
return mapped_column(Integer, ForeignKey('session.id'), nullable=True)
|
|
47
|
+
|
|
48
|
+
@declared_attr
|
|
49
|
+
def status(cls) -> Mapped[object]:
|
|
50
|
+
return mapped_column(String(30), nullable=False)
|
|
51
|
+
@declared_attr
|
|
52
|
+
def timezone(cls) -> Mapped[object]:
|
|
53
|
+
return relationship('Timezone', foreign_keys='Request.timezone_id', lazy='select')
|
|
54
|
+
|
|
55
|
+
@declared_attr
|
|
56
|
+
def timezone_id(cls) -> Mapped[object]:
|
|
57
|
+
return mapped_column(Integer, ForeignKey('timezone.id'), nullable=False)
|
|
58
|
+
@declared_attr
|
|
59
|
+
def type(cls) -> Mapped[object]:
|
|
60
|
+
return mapped_column(String(120), nullable=False)
|