cs-models 0.0.651__py3-none-any.whl → 0.0.653__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/ArtifactVectorIndex/__init__.py +0 -0
- cs_models/resources/ArtifactVectorIndex/models.py +32 -0
- cs_models/resources/ArtifactVectorIndex/schemas.py +16 -0
- cs_models/resources/UserExplorerColumn/schemas.py +1 -1
- {cs_models-0.0.651.dist-info → cs_models-0.0.653.dist-info}/METADATA +1 -1
- {cs_models-0.0.651.dist-info → cs_models-0.0.653.dist-info}/RECORD +8 -5
- {cs_models-0.0.651.dist-info → cs_models-0.0.653.dist-info}/WHEEL +0 -0
- {cs_models-0.0.651.dist-info → cs_models-0.0.653.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
Boolean,
|
|
8
|
+
String,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ArtifactVectorIndexModel(Base):
|
|
15
|
+
__tablename__ = "artifact_vector_index"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
artifact_id = Column(
|
|
19
|
+
String(50),
|
|
20
|
+
nullable=False,
|
|
21
|
+
index=True,
|
|
22
|
+
)
|
|
23
|
+
embedding_created = Column(Boolean, nullable=True)
|
|
24
|
+
embedding_s3_key = Column(String(128), nullable=True)
|
|
25
|
+
vector_indexed = Column(Boolean, nullable=True)
|
|
26
|
+
updated_at = Column(
|
|
27
|
+
DateTime,
|
|
28
|
+
nullable=False,
|
|
29
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
30
|
+
default=lambda: datetime.utcnow(),
|
|
31
|
+
onupdate=lambda: datetime.utcnow(),
|
|
32
|
+
)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ArtifactVectorIndexResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
artifact_id = fields.String(required=True)
|
|
13
|
+
embedding_created = fields.Boolean(allow_none=True)
|
|
14
|
+
embedding_s3_key = fields.String(allow_none=True)
|
|
15
|
+
vector_indexed = fields.Boolean(allow_none=True)
|
|
16
|
+
updated_at = fields.DateTime()
|
|
@@ -17,6 +17,9 @@ cs_models/resources/ActionLog/schemas.py,sha256=z9tUH9Sg5oq3gC_ZyEhDM6NM1aJYv5b2
|
|
|
17
17
|
cs_models/resources/AmountLicensingCollab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
cs_models/resources/AmountLicensingCollab/models.py,sha256=-xCbvCGawvbAsrb2wKc8zB19Q4ZMCsWbciWKP5cJwE8,848
|
|
19
19
|
cs_models/resources/AmountLicensingCollab/schemas.py,sha256=sqSIVGNEjWB0WlTrSUMUjCVqfHQvKGbCHQ9XJYuPyX8,452
|
|
20
|
+
cs_models/resources/ArtifactVectorIndex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
+
cs_models/resources/ArtifactVectorIndex/models.py,sha256=P8pMWjeGz-sJMIM5ZPdxhas3zfbgq8rEHbz1xJEZ0Ms,813
|
|
22
|
+
cs_models/resources/ArtifactVectorIndex/schemas.py,sha256=v5B4B24hwXSIAb8Fk4q8KKUhcAKhesCAL9Kz7zkVRlI,473
|
|
20
23
|
cs_models/resources/Assignee/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
24
|
cs_models/resources/Assignee/models.py,sha256=_f0_UwzF1gbOlU0t0l-9UIi0E4vaIS5VsHeOxc698SE,617
|
|
22
25
|
cs_models/resources/Assignee/schemas.py,sha256=N4_upICR1Cd_B45LHpOly7FEwWhAB1fXUP4y60OiezE,269
|
|
@@ -916,7 +919,7 @@ cs_models/resources/UserDocumentTarget/models.py,sha256=Wm0iA3lWKIeRSXbOiXzrp-WB
|
|
|
916
919
|
cs_models/resources/UserDocumentTarget/schemas.py,sha256=xX8DuLwpRVxXjw36WPjJBWwpU1RaDqQShotrlgfUmKw,544
|
|
917
920
|
cs_models/resources/UserExplorerColumn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
918
921
|
cs_models/resources/UserExplorerColumn/models.py,sha256=Fnwvqs31tqjd95ouCo0DScdLdLWRuT7J3uq95cwOUtg,811
|
|
919
|
-
cs_models/resources/UserExplorerColumn/schemas.py,sha256=
|
|
922
|
+
cs_models/resources/UserExplorerColumn/schemas.py,sha256=pfL8wGtzO4KjBTuLitwSkgbrty4jvaFZszEC361VIZY,417
|
|
920
923
|
cs_models/resources/UserFile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
921
924
|
cs_models/resources/UserFile/models.py,sha256=-eQ-6VqLl2SDiQ1mpuIxSwt8rnFDF0F-jALulgqZauY,744
|
|
922
925
|
cs_models/resources/UserFile/schemas.py,sha256=UN2-NlmGSW5Xvkphs7vSQjJ0uWjGNXFi_eOlytO1jV8,317
|
|
@@ -1069,7 +1072,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1069
1072
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1070
1073
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1071
1074
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1072
|
-
cs_models-0.0.
|
|
1073
|
-
cs_models-0.0.
|
|
1074
|
-
cs_models-0.0.
|
|
1075
|
-
cs_models-0.0.
|
|
1075
|
+
cs_models-0.0.653.dist-info/METADATA,sha256=3LjiaEfJiqlonxEjXkctJg7OeacjtdaROfl04DRpdcU,792
|
|
1076
|
+
cs_models-0.0.653.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1077
|
+
cs_models-0.0.653.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1078
|
+
cs_models-0.0.653.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|