cs-models 0.0.650__py3-none-any.whl → 0.0.652__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.

File without changes
@@ -0,0 +1,30 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ Text,
8
+ Boolean,
9
+ String,
10
+ )
11
+
12
+ from ...database import Base
13
+
14
+
15
+ class UserExplorerColumnModel(Base):
16
+ __tablename__ = "user_explorer_columns"
17
+
18
+ id = Column(Integer, primary_key=True)
19
+ user_id = Column(String(128), nullable=False, index=True)
20
+ artifact_ids = Column(Text, nullable=False)
21
+ prompt = Column(String(128), nullable=False)
22
+ result = Column(Text, nullable=True)
23
+ is_completed = Column(Boolean, 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
+ )
5
+
6
+
7
+ class UserExplorerColumnResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ user_id = fields.String(required=True)
10
+ artifact_ids = fields.String(required=True)
11
+ prompt = fields.String(required=True)
12
+ result = fields.String(required=True)
13
+ is_completed = fields.Boolean(allow_none=True)
14
+ updated_at = fields.DateTime(dump_only=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.650
3
+ Version: 0.0.652
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -914,6 +914,9 @@ cs_models/resources/UserDocumentTag/schemas.py,sha256=R0KOmc6XqU6dO-q7JOrjj1LEZm
914
914
  cs_models/resources/UserDocumentTarget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
915
915
  cs_models/resources/UserDocumentTarget/models.py,sha256=Wm0iA3lWKIeRSXbOiXzrp-WB2JTPwjATvzevIjcOGD0,995
916
916
  cs_models/resources/UserDocumentTarget/schemas.py,sha256=xX8DuLwpRVxXjw36WPjJBWwpU1RaDqQShotrlgfUmKw,544
917
+ cs_models/resources/UserExplorerColumn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
918
+ cs_models/resources/UserExplorerColumn/models.py,sha256=Fnwvqs31tqjd95ouCo0DScdLdLWRuT7J3uq95cwOUtg,811
919
+ cs_models/resources/UserExplorerColumn/schemas.py,sha256=pfL8wGtzO4KjBTuLitwSkgbrty4jvaFZszEC361VIZY,417
917
920
  cs_models/resources/UserFile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
918
921
  cs_models/resources/UserFile/models.py,sha256=-eQ-6VqLl2SDiQ1mpuIxSwt8rnFDF0F-jALulgqZauY,744
919
922
  cs_models/resources/UserFile/schemas.py,sha256=UN2-NlmGSW5Xvkphs7vSQjJ0uWjGNXFi_eOlytO1jV8,317
@@ -1066,7 +1069,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1066
1069
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1067
1070
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1068
1071
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1069
- cs_models-0.0.650.dist-info/METADATA,sha256=dw_g1zQeB-4UtBhdZK9OW9P5jxq7ibHxaVW_X6uENqg,792
1070
- cs_models-0.0.650.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1071
- cs_models-0.0.650.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1072
- cs_models-0.0.650.dist-info/RECORD,,
1072
+ cs_models-0.0.652.dist-info/METADATA,sha256=L2W8utKuvTekSxDXuBgI6rzicghATIbswwNYYKfxIZM,792
1073
+ cs_models-0.0.652.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1074
+ cs_models-0.0.652.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1075
+ cs_models-0.0.652.dist-info/RECORD,,