cs-models 0.0.709__py3-none-any.whl → 0.0.711__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/ViewPublicAssistantUserQuery/__init__.py +0 -0
- cs_models/resources/ViewPublicAssistantUserQuery/models.py +30 -0
- cs_models/resources/ViewPublicAssistantUserQuery/schemas.py +14 -0
- cs_models/resources/ViewPublicWorkbook/__init__.py +0 -0
- cs_models/resources/ViewPublicWorkbook/models.py +30 -0
- cs_models/resources/ViewPublicWorkbook/schemas.py +14 -0
- {cs_models-0.0.709.dist-info → cs_models-0.0.711.dist-info}/METADATA +1 -1
- {cs_models-0.0.709.dist-info → cs_models-0.0.711.dist-info}/RECORD +10 -4
- {cs_models-0.0.709.dist-info → cs_models-0.0.711.dist-info}/WHEEL +0 -0
- {cs_models-0.0.709.dist-info → cs_models-0.0.711.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
ForeignKey,
|
|
8
|
+
Text,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ViewPublicAssistantUserQueryModel(Base):
|
|
15
|
+
__tablename__ = "_view_public_assistant_user_queries"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
user_query_id = Column(
|
|
19
|
+
Integer,
|
|
20
|
+
ForeignKey('assistant_user_queries.id'),
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
data = Column(Text, nullable=True)
|
|
24
|
+
updated_at = Column(
|
|
25
|
+
DateTime,
|
|
26
|
+
nullable=False,
|
|
27
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
28
|
+
default=lambda: datetime.utcnow(),
|
|
29
|
+
onupdate=lambda: datetime.utcnow(),
|
|
30
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ViewPublicAssistantUserQueryResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
user_query_id = fields.Integer(required=True)
|
|
13
|
+
data = fields.String(allow_none=True)
|
|
14
|
+
updated_at = fields.DateTime()
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
ForeignKey,
|
|
8
|
+
Text,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ViewPublicWorkbookModel(Base):
|
|
15
|
+
__tablename__ = "_view_public_workbooks"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
workbook_id = Column(
|
|
19
|
+
Integer,
|
|
20
|
+
ForeignKey('workbooks.id'),
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
data = Column(Text, nullable=True)
|
|
24
|
+
updated_at = Column(
|
|
25
|
+
DateTime,
|
|
26
|
+
nullable=False,
|
|
27
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
28
|
+
default=lambda: datetime.utcnow(),
|
|
29
|
+
onupdate=lambda: datetime.utcnow(),
|
|
30
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ViewPublicWorkbookResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
workbook_id = fields.Integer(required=True)
|
|
13
|
+
data = fields.String(allow_none=True)
|
|
14
|
+
updated_at = fields.DateTime()
|
|
@@ -1092,6 +1092,12 @@ cs_models/resources/ViewMergerStage/schemas.py,sha256=ESFAkx25HLvkTW3PsD7FV1uaUg
|
|
|
1092
1092
|
cs_models/resources/ViewMergerTarget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1093
1093
|
cs_models/resources/ViewMergerTarget/models.py,sha256=zsCp5TV2PNDq-hf53O_2Otv_O1TqSxY08WowUdhjQfw,749
|
|
1094
1094
|
cs_models/resources/ViewMergerTarget/schemas.py,sha256=USAO8isTgJz6XUBm2bFnDwGrbaMEZShVVdJeKjgGtgc,352
|
|
1095
|
+
cs_models/resources/ViewPublicAssistantUserQuery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1096
|
+
cs_models/resources/ViewPublicAssistantUserQuery/models.py,sha256=NlQewgaHtNi5akJEsI0ZkJyh4HC41HsEiW2zz6XtxYM,739
|
|
1097
|
+
cs_models/resources/ViewPublicAssistantUserQuery/schemas.py,sha256=-k8hMVPD0uBEBO80v9WrGTvWeFPMV0oKKHC7pM3idN4,364
|
|
1098
|
+
cs_models/resources/ViewPublicWorkbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1099
|
+
cs_models/resources/ViewPublicWorkbook/models.py,sha256=j3HQyIURRlbqV4aKSb4ydCBCK7rDO9TEgnU6a_Z3ia0,701
|
|
1100
|
+
cs_models/resources/ViewPublicWorkbook/schemas.py,sha256=roJUBHpJm7C4jBvIWUNTV2nrwn4gzd0_Bu5_EcBk7jQ,352
|
|
1095
1101
|
cs_models/resources/ViewPublicationCompany/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1096
1102
|
cs_models/resources/ViewPublicationCompany/models.py,sha256=KfR-jU9RR9ioWyJUnK4qYiQY0JWMWYOIyzLK12WduTw,984
|
|
1097
1103
|
cs_models/resources/ViewPublicationCompany/schemas.py,sha256=mV2W3EH5kMRDbQrWHwRli3bBd-yVBA3kfsHYrRFj8VQ,1216
|
|
@@ -1174,7 +1180,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1174
1180
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1175
1181
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1176
1182
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1177
|
-
cs_models-0.0.
|
|
1178
|
-
cs_models-0.0.
|
|
1179
|
-
cs_models-0.0.
|
|
1180
|
-
cs_models-0.0.
|
|
1183
|
+
cs_models-0.0.711.dist-info/METADATA,sha256=H_NAj3yw_vLGGNQC9_TlqA0MJwgZZ-6deExEdxNzuLo,792
|
|
1184
|
+
cs_models-0.0.711.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1185
|
+
cs_models-0.0.711.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1186
|
+
cs_models-0.0.711.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|