cs-models 0.0.787__py3-none-any.whl → 0.0.788__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,28 @@
1
+ from sqlalchemy import (
2
+ Column,
3
+ Integer,
4
+ String,
5
+ DateTime,
6
+ )
7
+ from datetime import datetime
8
+
9
+ from ...database import Base
10
+
11
+
12
+ class CompanyDrugCountModel(Base):
13
+ __tablename__ = 'company_drug_count'
14
+
15
+ id = Column(Integer, primary_key=True)
16
+ company_id = Column(
17
+ String(50),
18
+ nullable=False,
19
+ index=True
20
+ )
21
+ drug_count = Column(Integer, nullable=False)
22
+ updated_at = Column(
23
+ DateTime,
24
+ nullable=False,
25
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
26
+ default=lambda: datetime.utcnow(),
27
+ onupdate=lambda: datetime.utcnow(),
28
+ )
@@ -0,0 +1,11 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ )
5
+
6
+
7
+ class CompanyDrugCountResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ company_id = fields.String(required=True)
10
+ drug_count = fields.Integer(required=True)
11
+ 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.787
3
+ Version: 0.0.788
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -109,6 +109,9 @@ cs_models/resources/Collection/schemas.py,sha256=eMIegInicBK7-BVtRUJTOn9YuI316_w
109
109
  cs_models/resources/CollectionEntity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
110
110
  cs_models/resources/CollectionEntity/models.py,sha256=vP4pKCIOMjrCseR3cNxoi3PrvqgiBNMPqmSGMAHqIBc,882
111
111
  cs_models/resources/CollectionEntity/schemas.py,sha256=H1Ct24iA4Wao1WF7DXlIzbIFxDNvVPGNlZm60-6ZGMI,512
112
+ cs_models/resources/CompanyDrugCount/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
113
+ cs_models/resources/CompanyDrugCount/models.py,sha256=-1neNvjMMDhniIrpM2zFZOL8OcvwMMt3y70pOK-7cC8,675
114
+ cs_models/resources/CompanyDrugCount/schemas.py,sha256=a41NgJiS6SOjcyim9DfqR06kykmeB2IrESyZ_pqEMcc,281
112
115
  cs_models/resources/CompanyFiling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
113
116
  cs_models/resources/CompanyFiling/models.py,sha256=6dDj2uvdJsYLf1HDLjwmTu3gPZAWVI8TScYZheHjQCw,1375
114
117
  cs_models/resources/CompanyFiling/schemas.py,sha256=DxiFgINSd9_GFyg_zgVi-3_BXBFrr5gHHFiupDvse_Q,1872
@@ -1279,7 +1282,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1279
1282
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1280
1283
  cs_models/utils/utils.py,sha256=BzCDk3u1np7DoJQqCZIJN4f80JNHvJoWO4qEFgolN-8,4474
1281
1284
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1282
- cs_models-0.0.787.dist-info/METADATA,sha256=Jvm5qjcGKGt1qOh7FXql0S2pTOFKT-Z2HKQH4ArM_yc,751
1283
- cs_models-0.0.787.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1284
- cs_models-0.0.787.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1285
- cs_models-0.0.787.dist-info/RECORD,,
1285
+ cs_models-0.0.788.dist-info/METADATA,sha256=slR9eM06pe5vsYhokE7MsesvPmb-kVZnsivk2WyauRc,751
1286
+ cs_models-0.0.788.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1287
+ cs_models-0.0.788.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1288
+ cs_models-0.0.788.dist-info/RECORD,,