cs-models 0.0.659__py3-none-any.whl → 0.0.660__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.
Potentially problematic release.
This version of cs-models might be problematic. Click here for more details.
- cs_models/resources/AssistantCommandChart/__init__.py +0 -0
- cs_models/resources/AssistantCommandChart/models.py +37 -0
- cs_models/resources/AssistantCommandChart/schemas.py +16 -0
- {cs_models-0.0.659.dist-info → cs_models-0.0.660.dist-info}/METADATA +1 -1
- {cs_models-0.0.659.dist-info → cs_models-0.0.660.dist-info}/RECORD +7 -4
- {cs_models-0.0.659.dist-info → cs_models-0.0.660.dist-info}/WHEEL +0 -0
- {cs_models-0.0.659.dist-info → cs_models-0.0.660.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
ForeignKey,
|
|
8
|
+
Boolean,
|
|
9
|
+
Text,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
from ...database import Base
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class AssistantCommandChartModel(Base):
|
|
16
|
+
__tablename__ = "assistant_command_charts"
|
|
17
|
+
|
|
18
|
+
id = Column(Integer, primary_key=True)
|
|
19
|
+
assistant_command_id = Column(
|
|
20
|
+
Integer,
|
|
21
|
+
ForeignKey('assistant_commands.id'),
|
|
22
|
+
nullable=False,
|
|
23
|
+
)
|
|
24
|
+
file_id = Column(
|
|
25
|
+
Integer,
|
|
26
|
+
ForeignKey('files.id'),
|
|
27
|
+
nullable=False,
|
|
28
|
+
)
|
|
29
|
+
chart_info = Column(Text, nullable=True)
|
|
30
|
+
is_deleted = Column(Boolean, nullable=True)
|
|
31
|
+
updated_at = Column(
|
|
32
|
+
DateTime,
|
|
33
|
+
nullable=False,
|
|
34
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
35
|
+
default=lambda: datetime.utcnow(),
|
|
36
|
+
onupdate=lambda: datetime.utcnow(),
|
|
37
|
+
)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AssistantCommandChartResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
assistant_command_id = fields.Integer(required=True)
|
|
13
|
+
file_id = fields.Integer(required=True)
|
|
14
|
+
chart_info = fields.String(allow_none=True)
|
|
15
|
+
is_deleted = fields.Boolean(allow_none=True)
|
|
16
|
+
updated_at = fields.DateTime()
|
|
@@ -32,6 +32,9 @@ cs_models/resources/AssistantCommand/schemas.py,sha256=7mS-WTHwPsu8Kd_0FLgJqYwrg
|
|
|
32
32
|
cs_models/resources/AssistantCommandArtifact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
cs_models/resources/AssistantCommandArtifact/models.py,sha256=SxSjZA_y2SGzXv7YW-19-rCTzRBcUiPf5JzMK1B-xRg,808
|
|
34
34
|
cs_models/resources/AssistantCommandArtifact/schemas.py,sha256=fNOCH2oS0gUsGZtgpKeYPc4-xJhODw2HidHV3C12tGo,414
|
|
35
|
+
cs_models/resources/AssistantCommandChart/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
+
cs_models/resources/AssistantCommandChart/models.py,sha256=N4Mri-74Is82ZGOvPLwvpcNHH9cJrWwYwDZtfNUGnjM,892
|
|
37
|
+
cs_models/resources/AssistantCommandChart/schemas.py,sha256=tD-ePZEKtZZOprpaxOZKhAfE-DVWmrTFTMWzwQ6tqfk,463
|
|
35
38
|
cs_models/resources/AssistantCommandEdge/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
39
|
cs_models/resources/AssistantCommandEdge/models.py,sha256=3blYNPb6zH6ewfj-VK7z77bbtvO9Ly6os4NL2vh4wIg,1372
|
|
37
40
|
cs_models/resources/AssistantCommandTable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -1087,7 +1090,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1087
1090
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1088
1091
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1089
1092
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1090
|
-
cs_models-0.0.
|
|
1091
|
-
cs_models-0.0.
|
|
1092
|
-
cs_models-0.0.
|
|
1093
|
-
cs_models-0.0.
|
|
1093
|
+
cs_models-0.0.660.dist-info/METADATA,sha256=rmuvG6IRj87HxJ9eZ9kFReT9E399YIaCZpg99Hiqu3Q,792
|
|
1094
|
+
cs_models-0.0.660.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1095
|
+
cs_models-0.0.660.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1096
|
+
cs_models-0.0.660.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|