cs-models 0.0.786__py3-none-any.whl → 0.0.787__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,31 @@
1
+ from sqlalchemy import (
2
+ Column,
3
+ Integer,
4
+ String,
5
+ DateTime,
6
+ ForeignKey,
7
+ Boolean,
8
+ )
9
+ from datetime import datetime
10
+
11
+ from ...database import Base
12
+
13
+
14
+ class UserMeetingModel(Base):
15
+ __tablename__ = 'user_meetings'
16
+
17
+ id = Column(Integer, primary_key=True)
18
+ user_id = Column(String(128), nullable=False)
19
+ meeting_id = Column(
20
+ Integer,
21
+ ForeignKey('meetings.id'),
22
+ nullable=False,
23
+ )
24
+ notification_status = Column(Boolean, 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,12 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ )
5
+
6
+
7
+ class UserMeetingResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ user_id = fields.String(required=True)
10
+ meeting_id = fields.Integer(required=True)
11
+ notification_status = fields.Boolean(allow_none=True)
12
+ 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.786
3
+ Version: 0.0.787
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -1070,6 +1070,9 @@ cs_models/resources/UserInternalDocWorkflow/schemas.py,sha256=I5waHOjEFRzcEeJ1kP
1070
1070
  cs_models/resources/UserLLMUse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1071
1071
  cs_models/resources/UserLLMUse/models.py,sha256=PX7xvU74zIA5ZgE8kDhdHtKWfJoM2VubtOuJpfV4A7w,810
1072
1072
  cs_models/resources/UserLLMUse/schemas.py,sha256=rkBf5fPyxCzevEKeVsB74Nv98ILWQwR2IJ0Q9UwYGDc,498
1073
+ cs_models/resources/UserMeeting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1074
+ cs_models/resources/UserMeeting/models.py,sha256=plSpZ3QGCTr3-TRqyurLAZbUCbeGGDXRrZLtz4irQMg,765
1075
+ cs_models/resources/UserMeeting/schemas.py,sha256=MEA6lspQ6z4qPLHPHXiP_2EannozVL6_uhR3Hs40psE,332
1073
1076
  cs_models/resources/UserNote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1074
1077
  cs_models/resources/UserNote/models.py,sha256=4p_FpkJiuXOd-gak3gIUeeJc-cAyno8UDxXR3KBXPr8,744
1075
1078
  cs_models/resources/UserNote/schemas.py,sha256=9ddZrnjQ98R6DnByCSa5-dzDznLkkPVGQAgw7_3grkQ,317
@@ -1276,7 +1279,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1276
1279
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1277
1280
  cs_models/utils/utils.py,sha256=BzCDk3u1np7DoJQqCZIJN4f80JNHvJoWO4qEFgolN-8,4474
1278
1281
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1279
- cs_models-0.0.786.dist-info/METADATA,sha256=AT5RDklDZ-KhscFKsDEFX6xKlZLndjFz5evrkjt6RME,751
1280
- cs_models-0.0.786.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1281
- cs_models-0.0.786.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1282
- cs_models-0.0.786.dist-info/RECORD,,
1282
+ cs_models-0.0.787.dist-info/METADATA,sha256=Jvm5qjcGKGt1qOh7FXql0S2pTOFKT-Z2HKQH4ArM_yc,751
1283
+ cs_models-0.0.787.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1284
+ cs_models-0.0.787.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1285
+ cs_models-0.0.787.dist-info/RECORD,,