cs-models 0.0.735__py3-none-any.whl → 0.0.737__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/Deal/models.py +1 -0
- cs_models/resources/Deal/schemas.py +1 -0
- cs_models/resources/DealAdvisor/__init__.py +0 -0
- cs_models/resources/DealAdvisor/models.py +35 -0
- cs_models/resources/DealAdvisor/schemas.py +15 -0
- cs_models/resources/DealUnderwriter/__init__.py +0 -0
- cs_models/resources/DealUnderwriter/models.py +35 -0
- cs_models/resources/DealUnderwriter/schemas.py +15 -0
- {cs_models-0.0.735.dist-info → cs_models-0.0.737.dist-info}/METADATA +1 -1
- {cs_models-0.0.735.dist-info → cs_models-0.0.737.dist-info}/RECORD +12 -6
- {cs_models-0.0.735.dist-info → cs_models-0.0.737.dist-info}/WHEEL +0 -0
- {cs_models-0.0.735.dist-info → cs_models-0.0.737.dist-info}/top_level.txt +0 -0
|
@@ -20,6 +20,7 @@ class DealModel(Base):
|
|
|
20
20
|
announcement_date = Column(DateTime, nullable=False, index=True)
|
|
21
21
|
round = Column(String(50), nullable=True)
|
|
22
22
|
deal_type = Column(String(128), nullable=True)
|
|
23
|
+
price = Column(String(50), nullable=True)
|
|
23
24
|
deal_value = Column(DECIMAL(13, 2), nullable=False)
|
|
24
25
|
currency = Column(String(10), nullable=True)
|
|
25
26
|
company_sec_id = Column(
|
|
@@ -16,6 +16,7 @@ class DealResourceSchema(Schema):
|
|
|
16
16
|
deal_value = fields.Decimal()
|
|
17
17
|
round = fields.String(allow_none=True)
|
|
18
18
|
deal_type = fields.String(allow_none=True)
|
|
19
|
+
price = fields.String(allow_none=True)
|
|
19
20
|
currency = fields.String(allow_none=True)
|
|
20
21
|
company_sec_id = fields.Integer(allow_none=True)
|
|
21
22
|
company_ous_id = fields.Integer(allow_none=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 DealAdvisorModel(Base):
|
|
15
|
+
__tablename__ = "deal_advisors"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
deal_id = Column(
|
|
19
|
+
Integer,
|
|
20
|
+
ForeignKey('deals.id'),
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
advisor_id = Column(
|
|
24
|
+
Integer,
|
|
25
|
+
ForeignKey('investors.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 DealAdvisorResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
deal_id = fields.Integer(required=True)
|
|
13
|
+
advisor_id = fields.Integer(required=True)
|
|
14
|
+
is_deleted = fields.Boolean(allow_none=True)
|
|
15
|
+
updated_at = fields.DateTime()
|
|
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 DealUnderwriterModel(Base):
|
|
15
|
+
__tablename__ = "deal_underwriters"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
deal_id = Column(
|
|
19
|
+
Integer,
|
|
20
|
+
ForeignKey('deals.id'),
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
underwriter_id = Column(
|
|
24
|
+
Integer,
|
|
25
|
+
ForeignKey('investors.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 DealUnderwriterResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
deal_id = fields.Integer(required=True)
|
|
13
|
+
underwriter_id = fields.Integer(required=True)
|
|
14
|
+
is_deleted = fields.Boolean(allow_none=True)
|
|
15
|
+
updated_at = fields.DateTime()
|
|
@@ -237,8 +237,11 @@ cs_models/resources/DOILink/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
|
237
237
|
cs_models/resources/DOILink/models.py,sha256=RZdBb9lnNlhzk4U8nRlrauIvwIJ-G5TfJhvBTtvYqio,345
|
|
238
238
|
cs_models/resources/DOILink/schemas.py,sha256=E3Oag9tyQ41iYiwfMjVB0_SOX7DgdxaJqps7UsQS3Xc,313
|
|
239
239
|
cs_models/resources/Deal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
240
|
-
cs_models/resources/Deal/models.py,sha256=
|
|
241
|
-
cs_models/resources/Deal/schemas.py,sha256=
|
|
240
|
+
cs_models/resources/Deal/models.py,sha256=jTnsmOCNZ-Vom-aCBvfmTkRilu6auh40FcltDPWsNKk,1249
|
|
241
|
+
cs_models/resources/Deal/schemas.py,sha256=RorA5uYDOc7oqOmwImPRz3MUx09ve6pyuADuJNsgnRQ,1714
|
|
242
|
+
cs_models/resources/DealAdvisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
243
|
+
cs_models/resources/DealAdvisor/models.py,sha256=WXTUts_3Tl9_6AG8WSnI2AHdMuZFskK0pCsCTvMDt8E,797
|
|
244
|
+
cs_models/resources/DealAdvisor/schemas.py,sha256=NxslAnlW1m5h4It2pAh82ExbfNW5OI0lXGiay0UsY_A,395
|
|
242
245
|
cs_models/resources/DealCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
243
246
|
cs_models/resources/DealCondition/models.py,sha256=-q6W-YKst8eFQsuB8E3s98_VIQWjSIqJFVEdtW_G28M,804
|
|
244
247
|
cs_models/resources/DealCondition/schemas.py,sha256=m8ag-gkWjD6mX3Gbqp2yPQ21gxnEW3eFIUGzywuyFbA,399
|
|
@@ -248,6 +251,9 @@ cs_models/resources/DealInvestor/schemas.py,sha256=QAl7cM_lGSxjJK4Zyof8yLfXqIUfu
|
|
|
248
251
|
cs_models/resources/DealOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
249
252
|
cs_models/resources/DealOutbox/models.py,sha256=jf1Vh5NGKO94X-0GVDrsWCjTeYg6Wu9HCDuIH-IECyA,1297
|
|
250
253
|
cs_models/resources/DealOutbox/schemas.py,sha256=-5EPiWngMfq_igX2u6-Zn8XRhq4PI-4zAPAKAIN_Vdw,1118
|
|
254
|
+
cs_models/resources/DealUnderwriter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
255
|
+
cs_models/resources/DealUnderwriter/models.py,sha256=XdA8hggPNWDhJBn9gOhLrEeSmGN8B36ZdFBZOnXDqAU,809
|
|
256
|
+
cs_models/resources/DealUnderwriter/schemas.py,sha256=KmlfMx-N4ae34TvKqNdlkt1plafP81YblLUL-V14h1U,403
|
|
251
257
|
cs_models/resources/DeletedNewswire/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
252
258
|
cs_models/resources/DeletedNewswire/models.py,sha256=Gm9Vn-yN4jnvLMULSNYypHHLqXT2WKIrasbunbDFfGY,597
|
|
253
259
|
cs_models/resources/DeletedNewswire/schemas.py,sha256=GUv3qxaehqApLvLcmGok0xl0IMMIJsWtHR3XvRNmDY8,497
|
|
@@ -1207,7 +1213,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1207
1213
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1208
1214
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1209
1215
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1210
|
-
cs_models-0.0.
|
|
1211
|
-
cs_models-0.0.
|
|
1212
|
-
cs_models-0.0.
|
|
1213
|
-
cs_models-0.0.
|
|
1216
|
+
cs_models-0.0.737.dist-info/METADATA,sha256=ySeBvSsEYGisG0yEVn7OMIF6DljLa5LShootXUG30Jk,792
|
|
1217
|
+
cs_models-0.0.737.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1218
|
+
cs_models-0.0.737.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1219
|
+
cs_models-0.0.737.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|