cs-models 0.0.790__py3-none-any.whl → 0.0.791__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,36 @@
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 UserMeetingFavoriteModel(Base):
15
+ __tablename__ = 'user_meeting_favorite'
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
+ pubmed_id = Column(
25
+ Integer,
26
+ ForeignKey('pubmed.id'),
27
+ nullable=False,
28
+ )
29
+ favorite_status = Column(Boolean, nullable=True)
30
+ updated_at = Column(
31
+ DateTime,
32
+ nullable=False,
33
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
34
+ default=lambda: datetime.utcnow(),
35
+ onupdate=lambda: datetime.utcnow(),
36
+ )
@@ -0,0 +1,13 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ )
5
+
6
+
7
+ class UserMeetingFavoriteResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ user_id = fields.String(required=True)
10
+ meeting_id = fields.Integer(required=True)
11
+ pubmed_id = fields.Integer(required=True)
12
+ favorite_status = fields.Boolean(allow_none=True)
13
+ 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.790
3
+ Version: 0.0.791
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -1079,6 +1079,9 @@ cs_models/resources/UserLLMUse/schemas.py,sha256=rkBf5fPyxCzevEKeVsB74Nv98ILWQwR
1079
1079
  cs_models/resources/UserMeeting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1080
1080
  cs_models/resources/UserMeeting/models.py,sha256=plSpZ3QGCTr3-TRqyurLAZbUCbeGGDXRrZLtz4irQMg,765
1081
1081
  cs_models/resources/UserMeeting/schemas.py,sha256=MEA6lspQ6z4qPLHPHXiP_2EannozVL6_uhR3Hs40psE,332
1082
+ cs_models/resources/UserMeetingFavorite/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1083
+ cs_models/resources/UserMeetingFavorite/models.py,sha256=iMICgCg8e6HVKv16KabOjqipZsG49UfsgPTJ5IU8aQA,881
1084
+ cs_models/resources/UserMeetingFavorite/schemas.py,sha256=cdvOxw_ZhyxOtIXCok9mTbCLr1r5bTWiv4hFZY9DPZ8,382
1082
1085
  cs_models/resources/UserNote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1083
1086
  cs_models/resources/UserNote/models.py,sha256=4p_FpkJiuXOd-gak3gIUeeJc-cAyno8UDxXR3KBXPr8,744
1084
1087
  cs_models/resources/UserNote/schemas.py,sha256=9ddZrnjQ98R6DnByCSa5-dzDznLkkPVGQAgw7_3grkQ,317
@@ -1285,7 +1288,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1285
1288
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1286
1289
  cs_models/utils/utils.py,sha256=BzCDk3u1np7DoJQqCZIJN4f80JNHvJoWO4qEFgolN-8,4474
1287
1290
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1288
- cs_models-0.0.790.dist-info/METADATA,sha256=WNvNglDPoRjiM_OQ77vEblBDRRW-MXbQPgPXUSanbaE,751
1289
- cs_models-0.0.790.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1290
- cs_models-0.0.790.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1291
- cs_models-0.0.790.dist-info/RECORD,,
1291
+ cs_models-0.0.791.dist-info/METADATA,sha256=Fr-d4WYgDz8D8i9BCPvoABy-vXlSTPhyV_9cA3vMRew,751
1292
+ cs_models-0.0.791.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1293
+ cs_models-0.0.791.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1294
+ cs_models-0.0.791.dist-info/RECORD,,