cs-models 0.0.732__py3-none-any.whl → 0.0.734__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,27 @@
1
+ from sqlalchemy import (
2
+ Column,
3
+ Integer,
4
+ String,
5
+ DateTime,
6
+ Boolean,
7
+ )
8
+ from datetime import datetime
9
+
10
+ from ...database import Base
11
+
12
+
13
+ class UserVAParameterViewModel(Base):
14
+ __tablename__ = 'user_va_parameter_views'
15
+
16
+ id = Column(Integer, primary_key=True)
17
+ user_id = Column(String(128), nullable=False)
18
+ name = Column(String(128), nullable=False)
19
+ condition_norm = Column(String(191), index=True, nullable=False)
20
+ is_deleted = Column(Boolean, 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,13 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ )
5
+
6
+
7
+ class UserVAParameterViewResourceSchema(Schema):
8
+ id = fields.Integer(dump_only=True)
9
+ user_id = fields.String(required=True)
10
+ name = fields.String(required=True)
11
+ condition_norm = fields.String(required=True)
12
+ is_deleted = fields.Boolean(allow_none=True)
13
+ updated_at = fields.DateTime(dump_only=True)
@@ -4,6 +4,7 @@ from sqlalchemy import (
4
4
  String,
5
5
  DateTime,
6
6
  Text,
7
+ Boolean,
7
8
  )
8
9
  from datetime import datetime
9
10
 
@@ -26,6 +27,7 @@ class VAParameterModel(Base):
26
27
  scid = Column(Integer, nullable=True)
27
28
  so = Column(Integer, nullable=True)
28
29
  llm_output = Column(Text, nullable=True)
30
+ needs_review = Column(Boolean, nullable=True)
29
31
  updated_at = Column(
30
32
  DateTime,
31
33
  nullable=False,
@@ -21,4 +21,5 @@ class VAParameterResourceSchema(Schema):
21
21
  scid = fields.Integer(allow_none=True)
22
22
  so = fields.Integer(allow_none=True)
23
23
  llm_output = fields.String(allow_none=True)
24
+ needs_review = fields.Boolean(allow_none=True)
24
25
  updated_at = fields.DateTime(dump_only=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 VAParameterViewModel(Base):
15
+ __tablename__ = "va_parameter_views"
16
+
17
+ id = Column(Integer, primary_key=True)
18
+ user_va_parameter_view_id = Column(
19
+ Integer,
20
+ ForeignKey('user_va_parameter_views.id'),
21
+ nullable=False,
22
+ )
23
+ va_parameter_id = Column(
24
+ Integer,
25
+ ForeignKey('va_parameters.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 VAParameterViewResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ user_va_parameter_view_id = fields.Integer(required=True)
13
+ va_parameter_id = fields.Integer(required=True)
14
+ is_deleted = fields.Boolean(allow_none=True)
15
+ 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.732
3
+ Version: 0.0.734
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -1032,6 +1032,9 @@ cs_models/resources/UserSearchHistoryItem/__init__.py,sha256=VAR16vegIC2J7P3s7Eo
1032
1032
  cs_models/resources/UserSearchHistoryItem/models.py,sha256=GdNZsTEett2x_gU92iPbRFpozimmFWn_p9liUtXWRTk,532
1033
1033
  cs_models/resources/UserSearchHistoryItem/schemas.py,sha256=e68GcY-1KV75VWwWCGryTufWXHL09h7b48UhxieoaUQ,747
1034
1034
  cs_models/resources/UserSearchHistoryItem/test_user_search_history_item.py,sha256=eoiVJpVS-_Fe6k2Bc1oCTc6gRggI1N1kc_trTNQ1w60,2904
1035
+ cs_models/resources/UserVAParameterView/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1036
+ cs_models/resources/UserVAParameterView/models.py,sha256=Kp0YiTaDCVux-hHewGlm1PG8aaU8eOmspJ7kRX_uMDg,767
1037
+ cs_models/resources/UserVAParameterView/schemas.py,sha256=yKyweMZ_RjgsApelXlSx7ArAGFDNoIp5GhFFuyIcPbs,374
1035
1038
  cs_models/resources/UserWatchlist/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1036
1039
  cs_models/resources/UserWatchlist/models.py,sha256=XPWn6KgwcWfAaYuaEkK1sRw304DvKbLXnvn_MjO_Q-Y,908
1037
1040
  cs_models/resources/UserWatchlist/schemas.py,sha256=gM4N7ClcMGvyaSzIg95SSOw1EbFdZ2tUbAke33FwtS8,528
@@ -1045,8 +1048,8 @@ cs_models/resources/VACompanyMap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
1045
1048
  cs_models/resources/VACompanyMap/models.py,sha256=5CQ-tXrG7OKPBIaBUICykTeeRzXJFP4Pg9TVRK8uzqs,750
1046
1049
  cs_models/resources/VACompanyMap/schemas.py,sha256=d1UPxtu6L-scc7HucwOf_6JcQ7G1-8NlfTu8eHzZMd4,1124
1047
1050
  cs_models/resources/VAParameter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1048
- cs_models/resources/VAParameter/models.py,sha256=R2A4jsBKuev6VLcxniTcwc0urEs3b-Lx-XGTreXDoyM,956
1049
- cs_models/resources/VAParameter/schemas.py,sha256=NNEzDQbS7pwL5KjL_kXKCO3lqExu6nMERyPe_gltkys,776
1051
+ cs_models/resources/VAParameter/models.py,sha256=nbwXEWbwQTb6sZOgrJmrdvWXtfJSwBbnDDNKXlcMgtg,1019
1052
+ cs_models/resources/VAParameter/schemas.py,sha256=ALeooGYwotzvEjrjIEGfJ9yh-iTylgy_iISztZE4cRE,827
1050
1053
  cs_models/resources/VAParameterCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1051
1054
  cs_models/resources/VAParameterCondition/models.py,sha256=kkF6fiebAQsClvwALO4WENBRfRkuN1Y36lJaRGD1YOY,953
1052
1055
  cs_models/resources/VAParameterCondition/schemas.py,sha256=zq1vaQM2WApJlQs6MzxNa54NG8kf0eQSMw6pzH6z5sk,497
@@ -1059,6 +1062,9 @@ cs_models/resources/VAParameterIntervention/schemas.py,sha256=Ypp2bz4_leBfyKcDsE
1059
1062
  cs_models/resources/VAParameterValue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1060
1063
  cs_models/resources/VAParameterValue/models.py,sha256=jnBN1wVgjf2zf5COPkZMEGGP05RloZoEqGzK8oTmm_4,1164
1061
1064
  cs_models/resources/VAParameterValue/schemas.py,sha256=van6N-TsxM2jtDQvILmXVR_DRdpUU2JPQ_IxpNp-_Dk,893
1065
+ cs_models/resources/VAParameterView/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1066
+ cs_models/resources/VAParameterView/models.py,sha256=02f-Wgmeexjbae_-IJi5nXZMoReCJ5Q5y0TtU7mPzx0,851
1067
+ cs_models/resources/VAParameterView/schemas.py,sha256=M8DW_YmI2ZAlf_eJq234o5VVGyavG8pLKisxH-UjKBI,436
1062
1068
  cs_models/resources/ViewConditionByTA/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1063
1069
  cs_models/resources/ViewConditionByTA/models.py,sha256=CieIW5mvmvok4dbglxd-ijMVI7gx-6C057CViSjuWoQ,764
1064
1070
  cs_models/resources/ViewConditionByTA/schemas.py,sha256=Y0hoMeysHulflnPUchmDP0NDsSTKtIZH-UXRvp2fIRw,441
@@ -1201,7 +1207,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1201
1207
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1202
1208
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1203
1209
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1204
- cs_models-0.0.732.dist-info/METADATA,sha256=H7W92sLIkSqxI-j0OqFAqqbjiyVUA7iefIsgpW7h4uc,792
1205
- cs_models-0.0.732.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1206
- cs_models-0.0.732.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1207
- cs_models-0.0.732.dist-info/RECORD,,
1210
+ cs_models-0.0.734.dist-info/METADATA,sha256=nBVRKUjZLX_5gRNFJGADSQivTUWjd0-Cufu53jK5pwQ,792
1211
+ cs_models-0.0.734.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1212
+ cs_models-0.0.734.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1213
+ cs_models-0.0.734.dist-info/RECORD,,