cs-models 0.0.788__py3-none-any.whl → 0.0.789__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,29 @@
1
+ from sqlalchemy import (
2
+ Column,
3
+ Integer,
4
+ String,
5
+ DateTime,
6
+ DECIMAL,
7
+ )
8
+ from datetime import datetime
9
+
10
+ from ...database import Base
11
+
12
+
13
+ class CompanyMarketCapModel(Base):
14
+ __tablename__ = 'company_market_cap'
15
+
16
+ id = Column(Integer, primary_key=True)
17
+ company_id = Column(
18
+ String(50),
19
+ nullable=False,
20
+ index=True
21
+ )
22
+ market_cap = Column(DECIMAL(20, 2), nullable=False)
23
+ updated_at = Column(
24
+ DateTime,
25
+ nullable=False,
26
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
27
+ default=lambda: datetime.utcnow(),
28
+ onupdate=lambda: datetime.utcnow(),
29
+ )
@@ -0,0 +1,11 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ )
5
+
6
+
7
+ class CompanyMarketCapResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ company_id = fields.String(required=True)
10
+ market_cap = fields.Decimal(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.788
3
+ Version: 0.0.789
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -142,6 +142,9 @@ cs_models/resources/CompanyLicensingCollab/schemas.py,sha256=WrtutVbbWW8KZ_P6h4l
142
142
  cs_models/resources/CompanyLicensingCollabOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
143
143
  cs_models/resources/CompanyLicensingCollabOutbox/models.py,sha256=53TDPP-3PlSuUoeSnhgnCN9QjUbpmU5mzYgCihcY6Qs,1015
144
144
  cs_models/resources/CompanyLicensingCollabOutbox/schemas.py,sha256=xO1EH4xOwf0X5JpeM0DNwWVqiKtRXrULARh7MXK59cE,1173
145
+ cs_models/resources/CompanyMarketCap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
+ cs_models/resources/CompanyMarketCap/models.py,sha256=Ai7lz4EWU8etFK6unOrwMFa-0FJdHS-5GYGULBl00-U,695
147
+ cs_models/resources/CompanyMarketCap/schemas.py,sha256=tBqKb4h3Iw9ZGpQ2xd9kFE-Z6quIZAnE0IkRaGIBJA4,282
145
148
  cs_models/resources/CompanyMerger/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
149
  cs_models/resources/CompanyMerger/models.py,sha256=2v86y0UNt8aTpIrUWnaRvYZlU9nWUD0DtZrAcUl4XA0,891
147
150
  cs_models/resources/CompanyMerger/schemas.py,sha256=XDwO3Agzd-c8M2zHFbLSuMmtYHvSDC7vuH4qWL163R0,1096
@@ -1282,7 +1285,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1282
1285
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1283
1286
  cs_models/utils/utils.py,sha256=BzCDk3u1np7DoJQqCZIJN4f80JNHvJoWO4qEFgolN-8,4474
1284
1287
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
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,,
1288
+ cs_models-0.0.789.dist-info/METADATA,sha256=2WMWlbSIj-Fe_14ovCWAOaJMh1UcodEEGstW55cpAAE,751
1289
+ cs_models-0.0.789.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1290
+ cs_models-0.0.789.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1291
+ cs_models-0.0.789.dist-info/RECORD,,