cs-models 0.0.752__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.
- cs_models/resources/FDADrugReview/__init__.py +0 -0
- cs_models/resources/FDADrugReview/models.py +38 -0
- cs_models/resources/FDADrugReview/schemas.py +21 -0
- {cs_models-0.0.752.dist-info → cs_models-0.0.753.dist-info}/METADATA +1 -1
- {cs_models-0.0.752.dist-info → cs_models-0.0.753.dist-info}/RECORD +7 -4
- {cs_models-0.0.752.dist-info → cs_models-0.0.753.dist-info}/WHEEL +0 -0
- {cs_models-0.0.752.dist-info → cs_models-0.0.753.dist-info}/top_level.txt +0 -0
|
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)
|
|
@@ -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
|
|
@@ -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.
|
|
1232
|
-
cs_models-0.0.
|
|
1233
|
-
cs_models-0.0.
|
|
1234
|
-
cs_models-0.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|