cs-models 0.0.751__py3-none-any.whl → 0.0.753__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,38 @@
1
+ from sqlalchemy import (
2
+ Column,
3
+ Integer,
4
+ String,
5
+ DateTime,
6
+ ForeignKey,
7
+ Boolean,
8
+ Float,
9
+ )
10
+ from datetime import datetime
11
+
12
+ from ...database import Base
13
+
14
+
15
+ class FDADrugReviewModel(Base):
16
+ __tablename__ = 'fda_drug_reviews'
17
+
18
+ id = Column(Integer, primary_key=True)
19
+ file_id = Column(
20
+ Integer,
21
+ ForeignKey('files.id'),
22
+ nullable=False,
23
+ )
24
+ date = Column(DateTime, nullable=True)
25
+ title = Column(String(255), nullable=True)
26
+ page_count = Column(Integer, nullable=True)
27
+ type = Column(String(255), nullable=True)
28
+ orig_file_url = Column(String(255), nullable=True)
29
+ is_deleted = Column(Boolean, nullable=True)
30
+ unprocessed = Column(Boolean, nullable=True)
31
+ reviewed = Column(Boolean, nullable=True)
32
+ updated_at = Column(
33
+ DateTime,
34
+ nullable=False,
35
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
36
+ default=lambda: datetime.utcnow(),
37
+ onupdate=lambda: datetime.utcnow(),
38
+ )
@@ -0,0 +1,21 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class FDADrugReviewResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ file_id = fields.Integer(required=True)
13
+ date = fields.DateTime(allow_none=True)
14
+ title = fields.String(allow_none=True)
15
+ page_count = fields.Integer(allow_none=True)
16
+ type = fields.String(allow_none=True)
17
+ orig_file_url = fields.String(allow_none=True)
18
+ is_deleted = fields.Boolean(allow_none=True)
19
+ unprocessed = fields.Boolean(allow_none=True)
20
+ reviewed = fields.Boolean(allow_none=True)
21
+ updated_at = fields.DateTime(dump_only=True)
@@ -17,6 +17,7 @@ class WorkbookWorkflowBlockModel(Base):
17
17
  block_type = Column(String(50), nullable=False)
18
18
  data = Column(Text, nullable=True)
19
19
  status = Column(String(50), nullable=False)
20
+ rendered = Column(Boolean, nullable=True)
20
21
  is_completed = Column(Boolean, nullable=True)
21
22
  is_deleted = Column(Boolean, nullable=True)
22
23
  created_at = Column(DateTime, nullable=False, default=lambda: datetime.utcnow())
@@ -53,6 +53,7 @@ class WorkbookWorkflowBlockResourceSchema(Schema):
53
53
  block_type = fields.String(required=True)
54
54
  data = WorkbookWorkflowBlockDataField(required=True, allow_none=True)
55
55
  status = fields.String(required=True)
56
+ rendered = fields.Boolean(allow_none=True)
56
57
  is_completed = fields.Boolean(allow_none=True)
57
58
  is_deleted = fields.Boolean(allow_none=True)
58
59
  created_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.751
3
+ Version: 0.0.753
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -316,6 +316,9 @@ cs_models/resources/EventsQueue/schemas.py,sha256=X6EGAog4ZTBraLJ1w0FOU88KWdmRiu
316
316
  cs_models/resources/ExplorerColumn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
317
317
  cs_models/resources/ExplorerColumn/models.py,sha256=t448jSUDUNpN3MPlA1-nf2H-K9KVfMkKIV7ruB-DSks,799
318
318
  cs_models/resources/ExplorerColumn/schemas.py,sha256=0qsNjOCkilZNa_Ly083dzp43h72MrAFM39dp2s8CnmY,442
319
+ cs_models/resources/FDADrugReview/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
320
+ cs_models/resources/FDADrugReview/models.py,sha256=zs3nLJgd9aoO2I8H03pyqEmu5LVB3lWpLfLuj30G9z4,1050
321
+ cs_models/resources/FDADrugReview/schemas.py,sha256=--onPQRRaxDKZgrh42KADLpyjCf5gc06BE1VbUOKnZw,690
319
322
  cs_models/resources/FDALabel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
320
323
  cs_models/resources/FDALabel/models.py,sha256=9J7Erh0fr6OrpQNBgyx83qdWxAuKg9NUbMLzG3EBWvI,1234
321
324
  cs_models/resources/FDALabel/schemas.py,sha256=J6_J2PkZInLxay5Bvq6TuHuJdii4TRoLhIE4RBT8FeY,793
@@ -1180,8 +1183,8 @@ cs_models/resources/WorkbookWorkflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
1180
1183
  cs_models/resources/WorkbookWorkflow/models.py,sha256=cMG3UXXgNtDWz-TTRd0TtjhaBtMAoTJ0HCQddY05kqU,1044
1181
1184
  cs_models/resources/WorkbookWorkflow/schemas.py,sha256=_QQ7W86pzN3mwFf0I1ObB2mKPDR-0ctXR7dZRKwP5Ug,710
1182
1185
  cs_models/resources/WorkbookWorkflowBlock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1183
- cs_models/resources/WorkbookWorkflowBlock/models.py,sha256=M2ApzK6Og0a-nqq0K6T8LWr-6pln3O2kf0I1KzA6JN4,1367
1184
- cs_models/resources/WorkbookWorkflowBlock/schemas.py,sha256=mhBaRITXOucILZMn_LIzRpp1XLG_lDi11Jr6vDcDgwE,1824
1186
+ cs_models/resources/WorkbookWorkflowBlock/models.py,sha256=hd3S2Vos4vL1Iv0ewN_LOvOZ-n4wc3lCWnP33wDWHeg,1413
1187
+ cs_models/resources/WorkbookWorkflowBlock/schemas.py,sha256=66LLL4U0Td_QsFgICo_telOJOCsRGk-BB44qXrz0bx8,1871
1185
1188
  cs_models/resources_aact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1186
1189
  cs_models/resources_aact/something.py,sha256=WM5m0FzNJce1BgWjDc5YVnMQoHomeeKEyi36EKcd33s,1561
1187
1190
  cs_models/resources_aact/BriefSummary/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -1228,7 +1231,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1228
1231
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1229
1232
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1230
1233
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1231
- cs_models-0.0.751.dist-info/METADATA,sha256=UyR-qjUeE77hFVNM8BMLy9oupoREXA-Sytx-2G0eA0c,751
1232
- cs_models-0.0.751.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1233
- cs_models-0.0.751.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1234
- cs_models-0.0.751.dist-info/RECORD,,
1234
+ cs_models-0.0.753.dist-info/METADATA,sha256=I21ZsKITt5nyUXtE4rTloove8Mrl3X8jhOu8uOrAUjI,751
1235
+ cs_models-0.0.753.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1236
+ cs_models-0.0.753.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1237
+ cs_models-0.0.753.dist-info/RECORD,,