cs-models 0.0.725__py3-none-any.whl → 0.0.727__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/VAParameter/models.py +2 -6
- cs_models/resources/VAParameterValue/__init__.py +0 -0
- cs_models/resources/VAParameterValue/models.py +41 -0
- cs_models/resources/VAParameterValue/schemas.py +26 -0
- {cs_models-0.0.725.dist-info → cs_models-0.0.727.dist-info}/METADATA +1 -1
- {cs_models-0.0.725.dist-info → cs_models-0.0.727.dist-info}/RECORD +8 -5
- {cs_models-0.0.725.dist-info → cs_models-0.0.727.dist-info}/WHEEL +0 -0
- {cs_models-0.0.725.dist-info → cs_models-0.0.727.dist-info}/top_level.txt +0 -0
|
@@ -14,17 +14,13 @@ class VAParameterModel(Base):
|
|
|
14
14
|
__tablename__ = 'va_parameters'
|
|
15
15
|
|
|
16
16
|
id = Column(Integer, primary_key=True)
|
|
17
|
-
pid = Column(Integer, nullable=False)
|
|
17
|
+
pid = Column(Integer, nullable=False, index=True)
|
|
18
18
|
cid = Column(Integer, nullable=False, index=True)
|
|
19
19
|
pname = Column(String(191), nullable=False)
|
|
20
20
|
ciso = Column(String(20), nullable=True)
|
|
21
21
|
u = Column(Integer, nullable=True)
|
|
22
22
|
sign = Column(String(10), nullable=True)
|
|
23
|
-
ppid = Column(
|
|
24
|
-
Integer,
|
|
25
|
-
ForeignKey('va_parameters.pid'),
|
|
26
|
-
nullable=True
|
|
27
|
-
)
|
|
23
|
+
ppid = Column(Integer, nullable=True, index=True)
|
|
28
24
|
ftid = Column(Integer, nullable=True)
|
|
29
25
|
dpname = Column(String(191), nullable=True)
|
|
30
26
|
scid = Column(Integer, nullable=True)
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from sqlalchemy import (
|
|
2
|
+
Column,
|
|
3
|
+
Integer,
|
|
4
|
+
String,
|
|
5
|
+
DateTime,
|
|
6
|
+
Float,
|
|
7
|
+
ForeignKey,
|
|
8
|
+
)
|
|
9
|
+
from datetime import datetime
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class VAParameterValueModel(Base):
|
|
15
|
+
__tablename__ = 'va_parameter_values'
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
va_parameter_id = Column(
|
|
19
|
+
Integer,
|
|
20
|
+
ForeignKey('va_parameters.id'),
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
pid = Column(Integer, nullable=False, index=True)
|
|
24
|
+
cid = Column(Integer, nullable=False, index=True)
|
|
25
|
+
sid = Column(Integer, nullable=False, index=True)
|
|
26
|
+
r = Column(DateTime, nullable=True)
|
|
27
|
+
p = Column(String(50), nullable=True)
|
|
28
|
+
ap = Column(String(50), nullable=True)
|
|
29
|
+
v = Column(Float, nullable=True)
|
|
30
|
+
ciso = Column(String(20), nullable=True)
|
|
31
|
+
csym = Column(String(10), nullable=True)
|
|
32
|
+
u = Column(Integer, nullable=True)
|
|
33
|
+
mdt = Column(DateTime, nullable=True)
|
|
34
|
+
vt = Column(String(20), nullable=True)
|
|
35
|
+
b = Column(Integer, nullable=True)
|
|
36
|
+
updated_at = Column(
|
|
37
|
+
DateTime,
|
|
38
|
+
nullable=False,
|
|
39
|
+
default=datetime.utcnow,
|
|
40
|
+
onupdate=datetime.utcnow,
|
|
41
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class VAParameterValueResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
va_parameter_id = fields.Integer(required=True)
|
|
13
|
+
pid = fields.Integer(required=True)
|
|
14
|
+
cid = fields.Integer(required=True)
|
|
15
|
+
sid = fields.Integer(allow_none=True)
|
|
16
|
+
r = fields.DateTime(allow_none=True)
|
|
17
|
+
p = fields.String(allow_none=True)
|
|
18
|
+
ap = fields.String(allow_none=True)
|
|
19
|
+
v = fields.Float(allow_none=True)
|
|
20
|
+
ciso = fields.String(allow_none=True)
|
|
21
|
+
csym = fields.String(allow_none=True)
|
|
22
|
+
u = fields.Integer(allow_none=True)
|
|
23
|
+
mdt = fields.DateTime(allow_none=True)
|
|
24
|
+
vt = fields.String(allow_none=True)
|
|
25
|
+
b = fields.Integer(allow_none=True)
|
|
26
|
+
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -1042,10 +1042,13 @@ cs_models/resources/UserWorkbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
1042
1042
|
cs_models/resources/UserWorkbook/models.py,sha256=1f5V5o4AcHElMY31bME4S1wm06bm3SbLucYJrzk0ONk,759
|
|
1043
1043
|
cs_models/resources/UserWorkbook/schemas.py,sha256=0roXytt6Rv8RS6Um9WPZbWz2eYptmxacc7SEp0c2vHQ,427
|
|
1044
1044
|
cs_models/resources/VAParameter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1045
|
-
cs_models/resources/VAParameter/models.py,sha256=
|
|
1045
|
+
cs_models/resources/VAParameter/models.py,sha256=C2eDFdDg7J9VEa_S6x5F5fHs4M4BWoFPleiJVhzZ8Ug,917
|
|
1046
1046
|
cs_models/resources/VAParameter/schemas.py,sha256=OqTuHbXhoRwqFCuxn_PrZ11EtYtJATLHWnF5uInPopQ,728
|
|
1047
1047
|
cs_models/resources/VAParameterCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1048
1048
|
cs_models/resources/VAParameterIntervention/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1049
|
+
cs_models/resources/VAParameterValue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1050
|
+
cs_models/resources/VAParameterValue/models.py,sha256=d-aYUd_BH01VmvBhB-zXxrmuItzmcLUySLQJMgxLqYE,1122
|
|
1051
|
+
cs_models/resources/VAParameterValue/schemas.py,sha256=wvyg4VI_X_uNJqPGkFyLVVMNbnfp7etTr7nF3XpokXc,853
|
|
1049
1052
|
cs_models/resources/ViewConditionByTA/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1050
1053
|
cs_models/resources/ViewConditionByTA/models.py,sha256=CieIW5mvmvok4dbglxd-ijMVI7gx-6C057CViSjuWoQ,764
|
|
1051
1054
|
cs_models/resources/ViewConditionByTA/schemas.py,sha256=Y0hoMeysHulflnPUchmDP0NDsSTKtIZH-UXRvp2fIRw,441
|
|
@@ -1188,7 +1191,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1188
1191
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1189
1192
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1190
1193
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1191
|
-
cs_models-0.0.
|
|
1192
|
-
cs_models-0.0.
|
|
1193
|
-
cs_models-0.0.
|
|
1194
|
-
cs_models-0.0.
|
|
1194
|
+
cs_models-0.0.727.dist-info/METADATA,sha256=1ome54BadgS5n4D7vmkpF5FvffkpmiPupyCMskulAyk,792
|
|
1195
|
+
cs_models-0.0.727.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1196
|
+
cs_models-0.0.727.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1197
|
+
cs_models-0.0.727.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|