cs-models 0.0.549__py3-none-any.whl → 0.0.550__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/Investor/models.py +6 -0
- cs_models/resources/Investor/schemas.py +1 -0
- cs_models/resources/InvestorBucket/__init__.py +0 -0
- cs_models/resources/InvestorBucket/models.py +27 -0
- cs_models/resources/InvestorBucket/schemas.py +15 -0
- {cs_models-0.0.549.dist-info → cs_models-0.0.550.dist-info}/METADATA +1 -1
- {cs_models-0.0.549.dist-info → cs_models-0.0.550.dist-info}/RECORD +9 -6
- {cs_models-0.0.549.dist-info → cs_models-0.0.550.dist-info}/WHEEL +0 -0
- {cs_models-0.0.549.dist-info → cs_models-0.0.550.dist-info}/top_level.txt +0 -0
|
@@ -6,6 +6,7 @@ from sqlalchemy import (
|
|
|
6
6
|
DateTime,
|
|
7
7
|
String,
|
|
8
8
|
Text,
|
|
9
|
+
ForeignKey,
|
|
9
10
|
)
|
|
10
11
|
|
|
11
12
|
from ...database import Base
|
|
@@ -19,6 +20,11 @@ class InvestorModel(Base):
|
|
|
19
20
|
aliases = Column(Text, nullable=True)
|
|
20
21
|
website = Column(String(256), nullable=True)
|
|
21
22
|
type = Column(String(50), nullable=True)
|
|
23
|
+
investor_bucket_id = Column(
|
|
24
|
+
Integer,
|
|
25
|
+
ForeignKey('investor_bucket.id'),
|
|
26
|
+
nullable=True,
|
|
27
|
+
)
|
|
22
28
|
updated_at = Column(
|
|
23
29
|
DateTime,
|
|
24
30
|
nullable=False,
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
String,
|
|
8
|
+
Text,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class InvestorBucketModel(Base):
|
|
15
|
+
__tablename__ = "investor_bucket"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
name = Column(String(191), nullable=False, index=True)
|
|
19
|
+
website = Column(String(256), nullable=True)
|
|
20
|
+
type = Column(String(50), nullable=True)
|
|
21
|
+
updated_at = Column(
|
|
22
|
+
DateTime,
|
|
23
|
+
nullable=False,
|
|
24
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
25
|
+
default=lambda: datetime.utcnow(),
|
|
26
|
+
onupdate=lambda: datetime.utcnow(),
|
|
27
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InvestorBucketResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
name = fields.String(required=True)
|
|
13
|
+
website = fields.String(allow_none=True)
|
|
14
|
+
type = fields.String(allow_none=True)
|
|
15
|
+
updated_at = fields.DateTime()
|
|
@@ -366,11 +366,14 @@ cs_models/resources/InterventionType/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeu
|
|
|
366
366
|
cs_models/resources/InterventionType/models.py,sha256=yGgOtLSM0GSXz_Gl2_-VTEqKBBIclbVJWh8ghIWVvGQ,904
|
|
367
367
|
cs_models/resources/InterventionType/schemas.py,sha256=tdmj9SMduUBUqDbIdHyfTJ7Bvvf5nFHSOOzN5AZMfeQ,508
|
|
368
368
|
cs_models/resources/Investor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
369
|
-
cs_models/resources/Investor/models.py,sha256=
|
|
370
|
-
cs_models/resources/Investor/schemas.py,sha256=
|
|
369
|
+
cs_models/resources/Investor/models.py,sha256=ExaEBfwtz6RrDN1KxziRBDxMe0TFWodTHVF1RYEix5E,858
|
|
370
|
+
cs_models/resources/Investor/schemas.py,sha256=FzHZ29j4nq_tKpVn_qor3Pc62oMP8Rb3IzbTVMXRjGM,481
|
|
371
371
|
cs_models/resources/InvestorAlias/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
372
372
|
cs_models/resources/InvestorAlias/models.py,sha256=bPFT96IglhqjYIqxPk-MQW2cZOFeF7NvP_H9EkNdVHE,700
|
|
373
373
|
cs_models/resources/InvestorAlias/schemas.py,sha256=Wn9ACbxGwbNaFoc9Lv86qMJTBwmMChfoWB9ghp2kTQQ,348
|
|
374
|
+
cs_models/resources/InvestorBucket/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
375
|
+
cs_models/resources/InvestorBucket/models.py,sha256=k0pFWuYY8sUNG2JtUJJLTMtj5wzcRFXyc0Fzbnd1GPQ,691
|
|
376
|
+
cs_models/resources/InvestorBucket/schemas.py,sha256=gwPUdJtWWi9-BliGkBuVu3QVAG0jUtH-QV0JtKa7Z_A,385
|
|
374
377
|
cs_models/resources/LLMCache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
375
378
|
cs_models/resources/LLMCache/models.py,sha256=Std5BPOsMFvGArvzIbIs5Mscwg1vtsuaTlTJbDzIC34,776
|
|
376
379
|
cs_models/resources/LLMCache/schemas.py,sha256=7RTxC4ZqNyd3c2r_NqbG-d6QoIaOMS6U4-Bcw7py4pE,483
|
|
@@ -890,7 +893,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
890
893
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
891
894
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
892
895
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
893
|
-
cs_models-0.0.
|
|
894
|
-
cs_models-0.0.
|
|
895
|
-
cs_models-0.0.
|
|
896
|
-
cs_models-0.0.
|
|
896
|
+
cs_models-0.0.550.dist-info/METADATA,sha256=hrMczv9_HOQ4Xm_iNBFxk83W3M3UCNRlZrp_dotbW4E,796
|
|
897
|
+
cs_models-0.0.550.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
898
|
+
cs_models-0.0.550.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
899
|
+
cs_models-0.0.550.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|