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,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 ArtifactGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'artifact'
|
|
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='Artifact.content_type_id', lazy='select')
|
|
18
|
+
@declared_attr
|
|
19
|
+
def operator_port_id(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(Integer, ForeignKey('operator_port.id'), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def operatorPort(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('OperatorPort', foreign_keys='Artifact.operator_port_id', lazy='select')
|
|
24
|
+
@declared_attr
|
|
25
|
+
def projection(cls) -> Mapped[object]:
|
|
26
|
+
return relationship('Projection', foreign_keys='Artifact.projection_id', lazy='select')
|
|
27
|
+
@declared_attr
|
|
28
|
+
def projection_id(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(Integer, ForeignKey('projection.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 storage(cls) -> Mapped[object]:
|
|
36
|
+
return relationship('Storage', foreign_keys='Artifact.storage_id', lazy='select')
|
|
37
|
+
@declared_attr
|
|
38
|
+
def storage_id(cls) -> Mapped[object]:
|
|
39
|
+
return mapped_column(Integer, ForeignKey('storage.id'), nullable=False)
|
|
@@ -0,0 +1,48 @@
|
|
|
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 CardGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'card'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def job(cls) -> Mapped[object]:
|
|
16
|
+
return relationship('Job', foreign_keys='Card.job_id', lazy='select')
|
|
17
|
+
@declared_attr
|
|
18
|
+
def job_id(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column(Integer, ForeignKey('job.id'), nullable=True)
|
|
20
|
+
@declared_attr
|
|
21
|
+
def positionX(cls) -> Mapped[object]:
|
|
22
|
+
return mapped_column('position_x', Integer, nullable=True)
|
|
23
|
+
@declared_attr
|
|
24
|
+
def positionY(cls) -> Mapped[object]:
|
|
25
|
+
return mapped_column('position_y', Integer, nullable=True)
|
|
26
|
+
@declared_attr
|
|
27
|
+
def scenario(cls) -> Mapped[object]:
|
|
28
|
+
return relationship('Scenario', foreign_keys='Card.scenario_id', lazy='select')
|
|
29
|
+
@declared_attr
|
|
30
|
+
def scenario_id(cls) -> Mapped[object]:
|
|
31
|
+
return mapped_column(Integer, ForeignKey('scenario.id'), nullable=False)
|
|
32
|
+
@declared_attr
|
|
33
|
+
def scope(cls) -> Mapped[object]:
|
|
34
|
+
return mapped_column(String(30), nullable=False)
|
|
35
|
+
@declared_attr
|
|
36
|
+
def secureId(cls) -> Mapped[object]:
|
|
37
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
38
|
+
|
|
39
|
+
@declared_attr
|
|
40
|
+
def title(cls) -> Mapped[object]:
|
|
41
|
+
return mapped_column(String(255), nullable=False)
|
|
42
|
+
@declared_attr
|
|
43
|
+
def user(cls) -> Mapped[object]:
|
|
44
|
+
return relationship('User', foreign_keys='Card.user_id', lazy='select')
|
|
45
|
+
|
|
46
|
+
@declared_attr
|
|
47
|
+
def user_id(cls) -> Mapped[object]:
|
|
48
|
+
return mapped_column(Integer, ForeignKey('user.id'), 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 CardMessageGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'card_message'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def card(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Card', foreign_keys='CardMessage.card_id', lazy='select')
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def card_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('card.id'), nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def message(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Message', foreign_keys='CardMessage.message_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def message_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('message.id'), 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 CardRelationGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'card_relation'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def card_source_id(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(Integer, ForeignKey('card.id'), nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def card_target_id(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(Integer, ForeignKey('card.id'), nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def cardSource(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Card', foreign_keys='CardRelation.card_source_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def cardTarget(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('Card', foreign_keys='CardRelation.card_target_id', lazy='select')
|
|
24
|
+
|
|
25
|
+
@declared_attr
|
|
26
|
+
def secureId(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import DateTime, ForeignKey, Integer, Text
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ChunkGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'chunk'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def content(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(Text, nullable=True)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def document(cls) -> Mapped[object]:
|
|
20
|
+
return relationship('Document', foreign_keys='Chunk.document_id', lazy='select')
|
|
21
|
+
@declared_attr
|
|
22
|
+
def document_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('document.id'), nullable=False)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def user(cls) -> Mapped[object]:
|
|
26
|
+
return relationship('User', foreign_keys='Chunk.user_id', lazy='select')
|
|
27
|
+
|
|
28
|
+
@declared_attr
|
|
29
|
+
def user_id(cls) -> Mapped[object]:
|
|
30
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
@@ -0,0 +1,36 @@
|
|
|
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 ContentTypeGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'content_type'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def extension(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Extension', foreign_keys='ContentType.extension_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def extension_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('extension.id'), nullable=True)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def name(cls) -> Mapped[object]:
|
|
19
|
+
return mapped_column(String(255), nullable=False)
|
|
20
|
+
@declared_attr
|
|
21
|
+
def project(cls) -> Mapped[object]:
|
|
22
|
+
return relationship('Project', foreign_keys='ContentType.project_id', lazy='select')
|
|
23
|
+
|
|
24
|
+
@declared_attr
|
|
25
|
+
def project_id(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(Integer, ForeignKey('project.id'), nullable=True)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def schema(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column(JSON, nullable=True)
|
|
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)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import DateTime, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CredentialGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'credential'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def secureId(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
17
|
+
|
|
18
|
+
@declared_attr
|
|
19
|
+
def title(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(String(255), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def type(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(String(120), 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 CredentialParameterGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'credential_parameter'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def credential(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Credential', foreign_keys='CredentialParameter.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 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)
|
|
25
|
+
@declared_attr
|
|
26
|
+
def value(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column(String(255), nullable=True)
|
|
@@ -0,0 +1,33 @@
|
|
|
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 DashboardGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'dashboard'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def scenario(cls) -> Mapped[object]:
|
|
16
|
+
return relationship('Scenario', foreign_keys='Dashboard.scenario_id', lazy='select')
|
|
17
|
+
|
|
18
|
+
@declared_attr
|
|
19
|
+
def scenario_id(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(Integer, ForeignKey('scenario.id'), nullable=False)
|
|
21
|
+
|
|
22
|
+
@declared_attr
|
|
23
|
+
def secureId(cls) -> Mapped[object]:
|
|
24
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
25
|
+
@declared_attr
|
|
26
|
+
def title(cls) -> Mapped[object]:
|
|
27
|
+
return mapped_column(String(255), nullable=False)
|
|
28
|
+
@declared_attr
|
|
29
|
+
def user(cls) -> Mapped[object]:
|
|
30
|
+
return relationship('User', foreign_keys='Dashboard.user_id', lazy='select')
|
|
31
|
+
@declared_attr
|
|
32
|
+
def user_id(cls) -> Mapped[object]:
|
|
33
|
+
return mapped_column(Integer, ForeignKey('user.id'), 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 DirectoryGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'directory'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def name(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(String(255), nullable=False)
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def secureId(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('secure_id', 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 DocumentDirectoryGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'document_directory'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def directory(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Directory', foreign_keys='DocumentDirectory.directory_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def directory_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('directory.id'), nullable=False)
|
|
17
|
+
@declared_attr
|
|
18
|
+
def document(cls) -> Mapped[object]:
|
|
19
|
+
return relationship('Document', foreign_keys='DocumentDirectory.document_id', lazy='select')
|
|
20
|
+
|
|
21
|
+
@declared_attr
|
|
22
|
+
def document_id(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(Integer, ForeignKey('document.id'), nullable=False)
|
|
@@ -0,0 +1,42 @@
|
|
|
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 DocumentGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'document'
|
|
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 mimeType(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column('mime_type', String(255), nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def project(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('Project', foreign_keys='Document.project_id', lazy='select')
|
|
24
|
+
@declared_attr
|
|
25
|
+
def project_id(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(Integer, ForeignKey('project.id'), nullable=False)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def secureId(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def title(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column(String(255), nullable=False)
|
|
33
|
+
@declared_attr
|
|
34
|
+
def type(cls) -> Mapped[object]:
|
|
35
|
+
return mapped_column(String(120), nullable=False)
|
|
36
|
+
@declared_attr
|
|
37
|
+
def user(cls) -> Mapped[object]:
|
|
38
|
+
return relationship('User', foreign_keys='Document.user_id', lazy='select')
|
|
39
|
+
|
|
40
|
+
@declared_attr
|
|
41
|
+
def user_id(cls) -> Mapped[object]:
|
|
42
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
@@ -0,0 +1,30 @@
|
|
|
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 EmbeddingGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'embedding'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def chunk(cls) -> Mapped[object]:
|
|
13
|
+
return relationship('Chunk', foreign_keys='Embedding.chunk_id', lazy='select')
|
|
14
|
+
@declared_attr
|
|
15
|
+
def chunk_id(cls) -> Mapped[object]:
|
|
16
|
+
return mapped_column(Integer, ForeignKey('chunk.id'), nullable=False)
|
|
17
|
+
|
|
18
|
+
@declared_attr
|
|
19
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def embedding(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column(String, nullable=False)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def model(cls) -> Mapped[object]:
|
|
26
|
+
return relationship('Model', foreign_keys='Embedding.model_id', lazy='select')
|
|
27
|
+
|
|
28
|
+
@declared_attr
|
|
29
|
+
def model_id(cls) -> Mapped[object]:
|
|
30
|
+
return mapped_column(Integer, ForeignKey('model.id'), 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 EnvironmentGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'environment'
|
|
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)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ExtensionGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'extension'
|
|
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)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def versionMajor(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column('version_major', Integer, nullable=False)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def versionMinor(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column('version_minor', Integer, nullable=False)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def versionPatch(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column('version_patch', Integer, 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 InstructionGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'instruction'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def body(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column(Text, nullable=True)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def format(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(String, nullable=False)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def model(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('Model', foreign_keys='Instruction.model_id', lazy='select')
|
|
24
|
+
@declared_attr
|
|
25
|
+
def model_id(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(Integer, ForeignKey('model.id'), nullable=True)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def user(cls) -> Mapped[object]:
|
|
29
|
+
return relationship('User', foreign_keys='Instruction.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,42 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import DateTime, Float, ForeignKey, Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class JobGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'job'
|
|
11
|
+
|
|
12
|
+
@declared_attr
|
|
13
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
14
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
15
|
+
@declared_attr
|
|
16
|
+
def positionX(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column('position_x', Integer, nullable=True)
|
|
18
|
+
@declared_attr
|
|
19
|
+
def positionY(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column('position_y', Integer, nullable=True)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def scenario(cls) -> Mapped[object]:
|
|
23
|
+
return relationship('Scenario', foreign_keys='Job.scenario_id', lazy='select')
|
|
24
|
+
@declared_attr
|
|
25
|
+
def scenario_id(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column(Integer, ForeignKey('scenario.id'), nullable=True)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def secureId(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def title(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column(String(255), nullable=True)
|
|
33
|
+
@declared_attr
|
|
34
|
+
def user(cls) -> Mapped[object]:
|
|
35
|
+
return relationship('User', foreign_keys='Job.user_id', lazy='select')
|
|
36
|
+
|
|
37
|
+
@declared_attr
|
|
38
|
+
def user_id(cls) -> Mapped[object]:
|
|
39
|
+
return mapped_column(Integer, ForeignKey('user.id'), nullable=False)
|
|
40
|
+
@declared_attr
|
|
41
|
+
def zoom(cls) -> Mapped[object]:
|
|
42
|
+
return mapped_column(Float, nullable=True)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import Integer, String
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LayerGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'layer'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def depth(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(Integer, nullable=False)
|
|
14
|
+
|
|
15
|
+
@declared_attr
|
|
16
|
+
def name(cls) -> Mapped[object]:
|
|
17
|
+
return mapped_column(String(255), nullable=False)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import DateTime, ForeignKey, Integer, Numeric, String, Text
|
|
4
|
+
from sqlalchemy.orm import Mapped, declared_attr, mapped_column, relationship
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class LogGenerated:
|
|
8
|
+
@classmethod
|
|
9
|
+
def get_entity_name(cls) -> str:
|
|
10
|
+
return 'log'
|
|
11
|
+
@declared_attr
|
|
12
|
+
def body(cls) -> Mapped[object]:
|
|
13
|
+
return mapped_column(Text, nullable=True)
|
|
14
|
+
@declared_attr
|
|
15
|
+
def card(cls) -> Mapped[object]:
|
|
16
|
+
return relationship('Card', foreign_keys='Log.card_id', lazy='select')
|
|
17
|
+
|
|
18
|
+
@declared_attr
|
|
19
|
+
def card_id(cls) -> Mapped[object]:
|
|
20
|
+
return mapped_column(Integer, ForeignKey('card.id'), nullable=True)
|
|
21
|
+
@declared_attr
|
|
22
|
+
def dateCompleted(cls) -> Mapped[object]:
|
|
23
|
+
return mapped_column('date_completed', DateTime, nullable=True)
|
|
24
|
+
@declared_attr
|
|
25
|
+
def dateCreated(cls) -> Mapped[object]:
|
|
26
|
+
return mapped_column('date_created', DateTime, nullable=False)
|
|
27
|
+
@declared_attr
|
|
28
|
+
def inputTokenPrice(cls) -> Mapped[object]:
|
|
29
|
+
return mapped_column('input_token_price', Numeric(12, 10), nullable=True)
|
|
30
|
+
@declared_attr
|
|
31
|
+
def inputTokens(cls) -> Mapped[object]:
|
|
32
|
+
return mapped_column('input_tokens', Integer, nullable=True)
|
|
33
|
+
@declared_attr
|
|
34
|
+
def job(cls) -> Mapped[object]:
|
|
35
|
+
return relationship('Job', foreign_keys='Log.job_id', lazy='select')
|
|
36
|
+
@declared_attr
|
|
37
|
+
def job_id(cls) -> Mapped[object]:
|
|
38
|
+
return mapped_column(Integer, ForeignKey('job.id'), nullable=True)
|
|
39
|
+
@declared_attr
|
|
40
|
+
def model(cls) -> Mapped[object]:
|
|
41
|
+
return relationship('Model', foreign_keys='Log.model_id', lazy='select')
|
|
42
|
+
@declared_attr
|
|
43
|
+
def model_id(cls) -> Mapped[object]:
|
|
44
|
+
return mapped_column(Integer, ForeignKey('model.id'), nullable=True)
|
|
45
|
+
@declared_attr
|
|
46
|
+
def name(cls) -> Mapped[object]:
|
|
47
|
+
return mapped_column(String(255), nullable=False)
|
|
48
|
+
@declared_attr
|
|
49
|
+
def node(cls) -> Mapped[object]:
|
|
50
|
+
return relationship('Node', foreign_keys='Log.node_id', lazy='select')
|
|
51
|
+
@declared_attr
|
|
52
|
+
def node_id(cls) -> Mapped[object]:
|
|
53
|
+
return mapped_column(Integer, ForeignKey('node.id'), nullable=True)
|
|
54
|
+
@declared_attr
|
|
55
|
+
def outputTokenPrice(cls) -> Mapped[object]:
|
|
56
|
+
return mapped_column('output_token_price', Numeric(12, 10), nullable=True)
|
|
57
|
+
@declared_attr
|
|
58
|
+
def outputTokens(cls) -> Mapped[object]:
|
|
59
|
+
return mapped_column('output_tokens', Integer, nullable=True)
|
|
60
|
+
@declared_attr
|
|
61
|
+
def request(cls) -> Mapped[object]:
|
|
62
|
+
return relationship('Request', foreign_keys='Log.request_id', lazy='select')
|
|
63
|
+
@declared_attr
|
|
64
|
+
def request_id(cls) -> Mapped[object]:
|
|
65
|
+
return mapped_column(Integer, ForeignKey('request.id'), nullable=True)
|
|
66
|
+
|
|
67
|
+
@declared_attr
|
|
68
|
+
def secureId(cls) -> Mapped[object]:
|
|
69
|
+
return mapped_column('secure_id', String(255), nullable=False)
|
|
70
|
+
@declared_attr
|
|
71
|
+
def session(cls) -> Mapped[object]:
|
|
72
|
+
return relationship('Session', foreign_keys='Log.session_id', lazy='select')
|
|
73
|
+
@declared_attr
|
|
74
|
+
def session_id(cls) -> Mapped[object]:
|
|
75
|
+
return mapped_column(Integer, ForeignKey('session.id'), nullable=True)
|
|
76
|
+
@declared_attr
|
|
77
|
+
def slot(cls) -> Mapped[object]:
|
|
78
|
+
return relationship('Slot', foreign_keys='Log.slot_id', lazy='select')
|
|
79
|
+
@declared_attr
|
|
80
|
+
def slot_id(cls) -> Mapped[object]:
|
|
81
|
+
return mapped_column(Integer, ForeignKey('slot.id'), nullable=True)
|
|
82
|
+
@declared_attr
|
|
83
|
+
def tokenCarbon(cls) -> Mapped[object]:
|
|
84
|
+
return mapped_column('token_carbon', Numeric(12, 10), nullable=True)
|