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

@@ -1,7 +1,7 @@
1
1
  """Models for storing Mindgram assistant sessions."""
2
2
  from datetime import datetime
3
3
 
4
- from sqlalchemy import Column, DateTime, Integer, String
4
+ from sqlalchemy import Column, DateTime, Integer, String, Boolean
5
5
  from sqlalchemy.orm import relationship
6
6
 
7
7
  from ..AssistantUserQuery.models import AssistantUserQueryModel
@@ -22,6 +22,7 @@ class AssistantSessionModel(Base):
22
22
  nullable=False,
23
23
  default=lambda: datetime.utcnow(),
24
24
  )
25
+ is_deleted = Column(Boolean, nullable=True)
25
26
  updated_at = Column(
26
27
  DateTime,
27
28
  nullable=False,
@@ -14,6 +14,7 @@ class AssistantSessionResourceSchema(Schema):
14
14
  many=True,
15
15
  dump_only=True,
16
16
  )
17
+ is_deleted = fields.Boolean(allow_none=True)
17
18
  created_at = fields.DateTime(dump_only=True)
18
19
  updated_at = fields.DateTime(dump_only=True)
19
20
 
@@ -35,6 +35,8 @@ class MeetingDataOutboxModel(Base):
35
35
  nullable=False,
36
36
  )
37
37
  error = Column(Text, nullable=True)
38
+ checks = Column(Text, nullable=True)
39
+ completed = Column(Boolean, nullable=True)
38
40
  updated_at = Column(
39
41
  DateTime,
40
42
  nullable=False,
@@ -19,4 +19,6 @@ class MeetingDataOutboxResourceSchema(Schema):
19
19
  submitted_date = fields.DateTime(allow_none=True)
20
20
  file_id = fields.Integer(required=True)
21
21
  error = fields.String(allow_none=True)
22
+ checks = fields.String(allow_none=True)
23
+ completed = fields.Boolean(allow_none=True)
22
24
  updated_at = fields.DateTime()
File without changes
@@ -0,0 +1,31 @@
1
+ from sqlalchemy import (
2
+ Column,
3
+ Integer,
4
+ String,
5
+ DateTime,
6
+ ForeignKey,
7
+ Float,
8
+ )
9
+ from datetime import datetime
10
+
11
+ from ...database import Base
12
+
13
+
14
+ class UserDocumentTagModel(Base):
15
+ __tablename__ = 'user_document_tags'
16
+
17
+ id = Column(Integer, primary_key=True)
18
+ user_document_id = Column(
19
+ Integer,
20
+ ForeignKey('user_documents.id'),
21
+ nullable=False,
22
+ )
23
+ tag = Column(String(50), nullable=False, index=True)
24
+ score = Column(Float, nullable=True)
25
+ updated_at = Column(
26
+ DateTime,
27
+ nullable=False,
28
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
29
+ default=lambda: datetime.utcnow(),
30
+ onupdate=lambda: datetime.utcnow(),
31
+ )
@@ -0,0 +1,15 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class UserDocumentTagResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ user_document_id = fields.Integer(required=True)
13
+ tag = fields.String(required=True, validate=not_blank)
14
+ score = fields.Float(allow_none=True)
15
+ updated_at = fields.DateTime()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.624
3
+ Version: 0.0.629
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -8,7 +8,7 @@ Author-email: sverma@mindgram.ai
8
8
  License: UNKNOWN
9
9
  Platform: UNKNOWN
10
10
  Classifier: Programming Language :: Python :: 3
11
- Requires-Python: ~=3.9
11
+ Requires-Python: >=3.8
12
12
  Requires-Dist: marshmallow (==3.19.0)
13
13
  Requires-Dist: PyMySQL (==1.0.2)
14
14
  Requires-Dist: python-dateutil (==2.8.2)
@@ -47,8 +47,8 @@ cs_models/resources/AssistantSearchCopilotMarkdown/__init__.py,sha256=47DEQpj8HB
47
47
  cs_models/resources/AssistantSearchCopilotMarkdown/models.py,sha256=1kP7JU2Bxlcl_dG2aSg88SertHL4mcNrlCnoECHq3vU,760
48
48
  cs_models/resources/AssistantSearchCopilotMarkdown/schemas.py,sha256=74k6fc1Ev9CBqLv_8YdxVIq_tppLP_1CKUYtH-nkcv0,291
49
49
  cs_models/resources/AssistantSession/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
- cs_models/resources/AssistantSession/models.py,sha256=3elxRbJDflQrrWIYfc-1tLwa3o_bxjH9phhXu5yY5zU,1305
51
- cs_models/resources/AssistantSession/schemas.py,sha256=Sc5pFt5O3ISQRR-hRYW7LcCqAhHcwIigAuO8R9kckH8,676
50
+ cs_models/resources/AssistantSession/models.py,sha256=8iCnlZheIJiR1c-r-N30ysW_B3L-0gioka10pQ9f5Jw,1362
51
+ cs_models/resources/AssistantSession/schemas.py,sha256=o9-I_Qy2dDbDYTycrIXmVZ4X0x2EiG_u8Rsm_Cokk2Q,725
52
52
  cs_models/resources/AssistantUserQuery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  cs_models/resources/AssistantUserQuery/models.py,sha256=fCM9N65laJanb_hVzFgTMzVLV09KuqSQKa27RuHhnMU,1753
54
54
  cs_models/resources/AssistantUserQuery/schemas.py,sha256=dGAHxkNxY7v8iD0EtKi_XJrIBF67ie-r7j6wNnAewP0,716
@@ -488,8 +488,8 @@ cs_models/resources/MeetingBucket/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
488
488
  cs_models/resources/MeetingBucket/models.py,sha256=OfjmVYISxesbvtu4E2bltlpvzFZluds7arFwjxma3S8,600
489
489
  cs_models/resources/MeetingBucket/schemas.py,sha256=oZm2XHNaWEh-aoqPbsS405BGZoo06QGPtHNM6Jf-MkQ,312
490
490
  cs_models/resources/MeetingDataOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
491
- cs_models/resources/MeetingDataOutbox/models.py,sha256=ZPvUU162VYNBfX97Xwz8PyCBQUZqzBAmej5f9I3qKxU,1195
492
- cs_models/resources/MeetingDataOutbox/schemas.py,sha256=Bd6cgauIGq3DE8XnndW1cXPP56Zetzo-UyT6gUkgzes,746
491
+ cs_models/resources/MeetingDataOutbox/models.py,sha256=Tv2NCEGclK436B0EhJNIBn6226eNP2-tB1a8lBT4SYQ,1283
492
+ cs_models/resources/MeetingDataOutbox/schemas.py,sha256=DYMB-F5l4pk340TsiRSgjAZaIQ2d7CVGKn0y6TiI2vA,838
493
493
  cs_models/resources/MeetingDataOutboxRow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
494
494
  cs_models/resources/MeetingDataOutboxRow/models.py,sha256=ZLxPVkhRlC8EOslippMynlCz3i2IZp06WVA73_DzBbo,725
495
495
  cs_models/resources/MeetingDataOutboxRow/schemas.py,sha256=sxmswoTLBtpTV3d4ihRQwnIR96dmFKYglNvSpgtswAs,364
@@ -887,6 +887,9 @@ cs_models/resources/UserDocumentCondition/schemas.py,sha256=BeeRrfrLW9N3k0IsOhoi
887
887
  cs_models/resources/UserDocumentIntervention/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
888
888
  cs_models/resources/UserDocumentIntervention/models.py,sha256=XDW1UIMnsQoyszHeel_aaCGnd_XfWxIOJF-JJBn9IoM,1019
889
889
  cs_models/resources/UserDocumentIntervention/schemas.py,sha256=XKgWDYGiU7NTPqNHkqxWgbdz0wMwt8__SlxrCPhEqrU,556
890
+ cs_models/resources/UserDocumentTag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
891
+ cs_models/resources/UserDocumentTag/models.py,sha256=A9fpE3iCmawx09fvQslM1zZuuWY8KNCBBTnJsbr5F2w,775
892
+ cs_models/resources/UserDocumentTag/schemas.py,sha256=R0KOmc6XqU6dO-q7JOrjj1LEZmLWODt8gGQtVFjZXYU,413
890
893
  cs_models/resources/UserDocumentTarget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
891
894
  cs_models/resources/UserDocumentTarget/models.py,sha256=Wm0iA3lWKIeRSXbOiXzrp-WB2JTPwjATvzevIjcOGD0,995
892
895
  cs_models/resources/UserDocumentTarget/schemas.py,sha256=xX8DuLwpRVxXjw36WPjJBWwpU1RaDqQShotrlgfUmKw,544
@@ -1033,7 +1036,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1033
1036
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1034
1037
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1035
1038
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1036
- cs_models-0.0.624.dist-info/METADATA,sha256=HyHGMYfZE36wGxraiTS8wkBPJJ79IQ3G7i9SQu-xcaU,792
1037
- cs_models-0.0.624.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1038
- cs_models-0.0.624.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1039
- cs_models-0.0.624.dist-info/RECORD,,
1039
+ cs_models-0.0.629.dist-info/METADATA,sha256=LULRSmXzLUBV64JxaLMITuK6PX7CuS3atAnFL6ZF4ls,792
1040
+ cs_models-0.0.629.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1041
+ cs_models-0.0.629.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1042
+ cs_models-0.0.629.dist-info/RECORD,,