cs-models 0.0.737__py3-none-any.whl → 0.0.738__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/FinancingDealType/__init__.py +0 -0
- cs_models/resources/FinancingDealType/models.py +28 -0
- cs_models/resources/FinancingDealType/schemas.py +13 -0
- {cs_models-0.0.737.dist-info → cs_models-0.0.738.dist-info}/METADATA +1 -1
- {cs_models-0.0.737.dist-info → cs_models-0.0.738.dist-info}/RECORD +7 -4
- {cs_models-0.0.737.dist-info → cs_models-0.0.738.dist-info}/WHEEL +0 -0
- {cs_models-0.0.737.dist-info → cs_models-0.0.738.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
String,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
from ...database import Base
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class FinancingDealTypeModel(Base):
|
|
14
|
+
__tablename__ = "financing_deal_types"
|
|
15
|
+
|
|
16
|
+
id = Column(Integer, primary_key=True)
|
|
17
|
+
deal_type = Column(
|
|
18
|
+
String(128),
|
|
19
|
+
nullable=False,
|
|
20
|
+
index=True,
|
|
21
|
+
)
|
|
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,13 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FinancingDealTypeResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
deal_type = fields.String(required=True)
|
|
13
|
+
updated_at = fields.DateTime()
|
|
@@ -354,6 +354,9 @@ cs_models/resources/File/__init__.py,sha256=eODbmnbxhnyka2FlPZbF_KmHGVpSakqgHYw8
|
|
|
354
354
|
cs_models/resources/File/models.py,sha256=PMG9wkcIQHofZmAPJHx5LUNNFkXfy922sHWXRtIH6Ec,897
|
|
355
355
|
cs_models/resources/File/schemas.py,sha256=RyOtOd21lC00tN_SAuKiTSEbye4ukAD_Jq_3KGA2Xlk,1166
|
|
356
356
|
cs_models/resources/File/test_file.py,sha256=2T0QsQb9DHA9zbm9KZjNtAa2MAFP65R1yU9wb8Yv_lw,6285
|
|
357
|
+
cs_models/resources/FinancingDealType/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
358
|
+
cs_models/resources/FinancingDealType/models.py,sha256=Ao4CkYp_Ea5GtiXbHegU0O1oslCq5rK0R1LRxLilvoQ,631
|
|
359
|
+
cs_models/resources/FinancingDealType/schemas.py,sha256=qNgyGnR5yuthnqV-X1En8WUaVwwPFtniIHRcQgXrjiM,306
|
|
357
360
|
cs_models/resources/GNRSS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
358
361
|
cs_models/resources/GNRSS/models.py,sha256=KB9ckMFiHimr3vs1OtgiSbZFUnpl6VYPA1xu-T_cLk8,599
|
|
359
362
|
cs_models/resources/GNRSS/schemas.py,sha256=2mxeG0aobqLQBRGNKQbRex8XZvNV4QVq6UcdH1AMPwI,684
|
|
@@ -1213,7 +1216,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1213
1216
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1214
1217
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1215
1218
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1216
|
-
cs_models-0.0.
|
|
1217
|
-
cs_models-0.0.
|
|
1218
|
-
cs_models-0.0.
|
|
1219
|
-
cs_models-0.0.
|
|
1219
|
+
cs_models-0.0.738.dist-info/METADATA,sha256=elG2oQ3IozUH4KFmHDjcFr-GCNfqQ5k7HR6StWWq2U4,792
|
|
1220
|
+
cs_models-0.0.738.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1221
|
+
cs_models-0.0.738.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1222
|
+
cs_models-0.0.738.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|