cs-models 0.0.662__py3-none-any.whl → 0.0.664__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/CompanyReview/models.py +1 -0
- cs_models/resources/CompanyReview/schemas.py +1 -0
- cs_models/resources/PubmedUserDocument/__init__.py +0 -0
- cs_models/resources/PubmedUserDocument/models.py +35 -0
- cs_models/resources/PubmedUserDocument/schemas.py +15 -0
- {cs_models-0.0.662.dist-info → cs_models-0.0.664.dist-info}/METADATA +1 -1
- {cs_models-0.0.662.dist-info → cs_models-0.0.664.dist-info}/RECORD +9 -6
- {cs_models-0.0.662.dist-info → cs_models-0.0.664.dist-info}/WHEEL +0 -0
- {cs_models-0.0.662.dist-info → cs_models-0.0.664.dist-info}/top_level.txt +0 -0
|
@@ -15,4 +15,5 @@ class CompanyReviewResourceSchema(Schema):
|
|
|
15
15
|
news_id = fields.Integer(allow_none=False)
|
|
16
16
|
reviewed = fields.Boolean(allow_none=True)
|
|
17
17
|
historical = fields.Boolean(allow_none=True)
|
|
18
|
+
approval = fields.Boolean(allow_none=True)
|
|
18
19
|
updated_at = fields.DateTime(dump_only=True)
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
ForeignKey,
|
|
8
|
+
Boolean,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class PubmedUserDocumentModel(Base):
|
|
15
|
+
__tablename__ = "pubmed_user_documents"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
pubmed_id = Column(
|
|
19
|
+
Integer,
|
|
20
|
+
ForeignKey('pubmed.id'),
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
user_document_id = Column(
|
|
24
|
+
Integer,
|
|
25
|
+
ForeignKey('user_documents.id'),
|
|
26
|
+
nullable=False,
|
|
27
|
+
)
|
|
28
|
+
is_deleted = Column(Boolean, nullable=True)
|
|
29
|
+
updated_at = Column(
|
|
30
|
+
DateTime,
|
|
31
|
+
nullable=False,
|
|
32
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
33
|
+
default=lambda: datetime.utcnow(),
|
|
34
|
+
onupdate=lambda: datetime.utcnow(),
|
|
35
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PubmedUserDocumentResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
pubmed_id = fields.Integer(required=True)
|
|
13
|
+
user_document_id = fields.Integer(required=True)
|
|
14
|
+
is_deleted = fields.Boolean(allow_none=True)
|
|
15
|
+
updated_at = fields.DateTime()
|
|
@@ -147,8 +147,8 @@ cs_models/resources/CompanyOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
|
147
147
|
cs_models/resources/CompanyOutbox/models.py,sha256=4FOYT2QUsSEX4sOVZ7UlFBzGuoE5THoa7PfFy2auJz8,1255
|
|
148
148
|
cs_models/resources/CompanyOutbox/schemas.py,sha256=XmCj5tuy1Ie8F_X1w4nbun5KDx-Vr0EQjZhcHG2PpmA,739
|
|
149
149
|
cs_models/resources/CompanyReview/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
150
|
-
cs_models/resources/CompanyReview/models.py,sha256=
|
|
151
|
-
cs_models/resources/CompanyReview/schemas.py,sha256=
|
|
150
|
+
cs_models/resources/CompanyReview/models.py,sha256=84SDAOrHHaf9rDKL2E5k0BR-WPptIsnAkgtm5hu0vUU,950
|
|
151
|
+
cs_models/resources/CompanyReview/schemas.py,sha256=uSCNB7RTCf6NxGCn5YpMhsJ_s_uhBKPJiqYirbxhAac,613
|
|
152
152
|
cs_models/resources/CompanySEC/__init__.py,sha256=FIhdhWllhL_qxTFTtmic_J7eK9qtHh0t3sfygA7NlPc,2890
|
|
153
153
|
cs_models/resources/CompanySEC/models.py,sha256=Hy6MHVGYRRWfKWtU3CzQ7_mCTh48a6ADMsaR7ZYwo18,1338
|
|
154
154
|
cs_models/resources/CompanySEC/schemas.py,sha256=vtoyvXfVnC17LUivrCSrN4icX7sm5oyQAPCwuKlHC0A,1770
|
|
@@ -835,6 +835,9 @@ cs_models/resources/PubmedTarget/schemas.py,sha256=fY6t6JwzSgc95WVPXJUKJz5kYNZoL
|
|
|
835
835
|
cs_models/resources/PubmedUpdateLedger/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
836
836
|
cs_models/resources/PubmedUpdateLedger/models.py,sha256=3roSR67RZbpxo5sQ-ZSfYItHInrJaT1lMbSKr95JjOw,744
|
|
837
837
|
cs_models/resources/PubmedUpdateLedger/schemas.py,sha256=rlXKvQNfcBUjcsYZtxbd6xBrAQslNHD5lfaLKpL2rvw,445
|
|
838
|
+
cs_models/resources/PubmedUserDocument/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
839
|
+
cs_models/resources/PubmedUserDocument/models.py,sha256=h95HWZEblSFuEIIyYY2B8kVaM1DfzWhb-xKpya0CHoY,826
|
|
840
|
+
cs_models/resources/PubmedUserDocument/schemas.py,sha256=f7V1GmE7EB0jF-WqIUp6BbBYtNCIvAvE_cdk5wTWu8A,410
|
|
838
841
|
cs_models/resources/PubmedVectorIndex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
839
842
|
cs_models/resources/PubmedVectorIndex/models.py,sha256=PaCcSubMQijFEm7haiPT13-KMyz4fR0ConRUW1f1dzg,833
|
|
840
843
|
cs_models/resources/PubmedVectorIndex/schemas.py,sha256=U1SFhceJoe2MypkoHp78-Gz__yg4B6F6wvCyMpmTfYk,470
|
|
@@ -1090,7 +1093,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1090
1093
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1091
1094
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1092
1095
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1093
|
-
cs_models-0.0.
|
|
1094
|
-
cs_models-0.0.
|
|
1095
|
-
cs_models-0.0.
|
|
1096
|
-
cs_models-0.0.
|
|
1096
|
+
cs_models-0.0.664.dist-info/METADATA,sha256=175O3snfbCqcatF4G3p7DbhYCapgpm5wn88Chxsy3Ok,792
|
|
1097
|
+
cs_models-0.0.664.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1098
|
+
cs_models-0.0.664.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1099
|
+
cs_models-0.0.664.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|