cs-models 0.0.717__py3-none-any.whl → 0.0.719__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,25 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ String,
8
+ )
9
+
10
+ from ...database import Base
11
+
12
+
13
+ class BoxDriveModel(Base):
14
+ __tablename__ = "box_drives"
15
+
16
+ id = Column(Integer, primary_key=True)
17
+ user_id = Column(String(128), nullable=False)
18
+ enterprise_id = Column(String(128), nullable=False)
19
+ updated_at = Column(
20
+ DateTime,
21
+ nullable=False,
22
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
23
+ default=lambda: datetime.utcnow(),
24
+ onupdate=lambda: datetime.utcnow(),
25
+ )
@@ -0,0 +1,11 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ )
5
+
6
+
7
+ class BoxDriveResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ user_id = fields.String(required=True)
10
+ enterprise_id = fields.String(required=True)
11
+ updated_at = fields.DateTime(dump_only=True)
File without changes
@@ -0,0 +1,25 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ String,
8
+ )
9
+
10
+ from ...database import Base
11
+
12
+
13
+ class BoxWebhookModel(Base):
14
+ __tablename__ = "box_webhooks"
15
+
16
+ id = Column(Integer, primary_key=True)
17
+ webhook_id = Column(String(128), nullable=False)
18
+ enterprise_id = Column(String(128), nullable=False)
19
+ updated_at = Column(
20
+ DateTime,
21
+ nullable=False,
22
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
23
+ default=lambda: datetime.utcnow(),
24
+ onupdate=lambda: datetime.utcnow(),
25
+ )
@@ -0,0 +1,11 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ )
5
+
6
+
7
+ class BoxDriveResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ webhook_id = fields.String(required=True)
10
+ enterprise_id = fields.String(required=True)
11
+ updated_at = fields.DateTime(dump_only=True)
@@ -39,6 +39,7 @@ class UserDocumentHierarchyModel(Base):
39
39
  )
40
40
  is_deleted = Column(Boolean, nullable=True)
41
41
  is_trashed = Column(Boolean, nullable=True)
42
+ is_locked = Column(Boolean, nullable=True)
42
43
  updated_at = Column(
43
44
  DateTime,
44
45
  nullable=False,
@@ -20,4 +20,5 @@ class UserDocumentHierarchyResourceSchema(Schema):
20
20
  workbook_id = fields.Integer(allow_none=True)
21
21
  is_deleted = fields.Boolean(allow_none=True)
22
22
  is_trashed = fields.Boolean(allow_none=True)
23
+ is_locked = fields.Boolean(allow_none=True)
23
24
  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.717
3
+ Version: 0.0.719
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -76,6 +76,12 @@ cs_models/resources/Biomarker/schemas.py,sha256=saP7FJfKeUPDHEhKeJqLci9gze3WZYXW
76
76
  cs_models/resources/BiomarkerSyn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
77
77
  cs_models/resources/BiomarkerSyn/models.py,sha256=tYYr76n8CbiC4jaBiJ4krE4FwfPADfkncl_0tnlEsEY,745
78
78
  cs_models/resources/BiomarkerSyn/schemas.py,sha256=YTv8CY6hcJcVRpQKlSdZdyD2jwF1Vx0QyhIdKQYUpZg,347
79
+ cs_models/resources/BoxDrive/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
+ cs_models/resources/BoxDrive/models.py,sha256=QjQFUq8rm-xJ28sGbOUDntVe5RlIVafgnywthbOIZnQ,623
81
+ cs_models/resources/BoxDrive/schemas.py,sha256=xAlXzjPsoiVlgEuESmG_lzc31KOHH5ImzB8NBTAGChg,273
82
+ cs_models/resources/BoxWebhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
+ cs_models/resources/BoxWebhook/models.py,sha256=WgB6g3r9pLEGA6wyzySRvqry2HfcStTUaaTYVyLUf5E,630
84
+ cs_models/resources/BoxWebhook/schemas.py,sha256=vNbianEIXTZP-eXv_R0oPIbHCeJKZZEeHW2I5eolP1k,276
79
85
  cs_models/resources/CTProductsView/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
86
  cs_models/resources/CTProductsView/models.py,sha256=MhnIRsYjgkkuSSUF6JkqrHzFMqzbbSsIU-CkEjSEEDI,1042
81
87
  cs_models/resources/CTProductsView/schemas.py,sha256=7lU2GfAVYxVek1TG-w5qdFA8Th2KZvfOtkLfMl5lDo4,1254
@@ -981,8 +987,8 @@ cs_models/resources/UserDocumentCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-
981
987
  cs_models/resources/UserDocumentCondition/models.py,sha256=FZzNgxc4-zZ5TiuJYfxNjPvi5mZCunTc9sVOXBGYpqc,1007
982
988
  cs_models/resources/UserDocumentCondition/schemas.py,sha256=BeeRrfrLW9N3k0IsOhoi3CXXos4rNbJ_ka4Qqbj-Ddw,550
983
989
  cs_models/resources/UserDocumentHierarchy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
984
- cs_models/resources/UserDocumentHierarchy/models.py,sha256=-MvEZxET6VgpIH8xoSgY5LtP-PTaKSlUpa-a_UrLeCM,1484
985
- cs_models/resources/UserDocumentHierarchy/schemas.py,sha256=hdGfA5WAS5wtJi4fkQJVBr92KTMT1wfUmgoiDbmPC6E,800
990
+ cs_models/resources/UserDocumentHierarchy/models.py,sha256=PEC1bWy3KHQUXFffWR0syuq2xLrjRCfeHuBOIv20fm4,1531
991
+ cs_models/resources/UserDocumentHierarchy/schemas.py,sha256=P1SZjVYn2xTBl7Ayrgdx0VV57-4Gbh8j5Nc7zpnj0g4,848
986
992
  cs_models/resources/UserDocumentIntervention/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
987
993
  cs_models/resources/UserDocumentIntervention/models.py,sha256=XDW1UIMnsQoyszHeel_aaCGnd_XfWxIOJF-JJBn9IoM,1019
988
994
  cs_models/resources/UserDocumentIntervention/schemas.py,sha256=XKgWDYGiU7NTPqNHkqxWgbdz0wMwt8__SlxrCPhEqrU,556
@@ -1180,7 +1186,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1180
1186
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1181
1187
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1182
1188
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1183
- cs_models-0.0.717.dist-info/METADATA,sha256=2OiZJ20NuS9ynjang3stOPnu-MyjnJdTGea-2LeUExY,792
1184
- cs_models-0.0.717.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1185
- cs_models-0.0.717.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1186
- cs_models-0.0.717.dist-info/RECORD,,
1189
+ cs_models-0.0.719.dist-info/METADATA,sha256=MYp2VflfBeF9dabfdL_vcxKOdzN8o5VVwHUdWYYxqqs,792
1190
+ cs_models-0.0.719.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1191
+ cs_models-0.0.719.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1192
+ cs_models-0.0.719.dist-info/RECORD,,