cs-models 0.0.691__py3-none-any.whl → 0.0.692__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.

@@ -11,6 +11,7 @@ class SmartGridModel(Base):
11
11
  __tablename__ = "smart_grids"
12
12
 
13
13
  id = Column(Integer, primary_key=True)
14
+ user_id = Column(String(128), nullable=False)
14
15
  is_deleted = Column(Boolean, nullable=True)
15
16
  updated_at = Column(
16
17
  DateTime,
@@ -1,9 +1,12 @@
1
- from marshmallow import Schema, fields
1
+ from marshmallow import Schema, fields, validate
2
2
  from ..SmartGridCell.schemas import SmartGridCellResourceSchema
3
3
 
4
4
 
5
5
  class SmartGridResourceSchema(Schema):
6
+ not_blank = validate.Length(min=1, error="Field cannot be blank")
7
+
6
8
  id = fields.Integer(dump_only=True)
9
+ user_id = fields.String(required=True, validate=not_blank)
7
10
  is_deleted = fields.Boolean(allow_none=True)
8
11
  cells = fields.Nested(
9
12
  SmartGridCellResourceSchema(exclude=("smart_grid_id",)),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.691
3
+ Version: 0.0.692
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -870,8 +870,8 @@ cs_models/resources/SearchLink/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
870
870
  cs_models/resources/SearchLink/models.py,sha256=l1tPCSKHK7Wq1OUWFH72NYncEt6Q3bR0P6ii7YKoxCM,729
871
871
  cs_models/resources/SearchLink/schemas.py,sha256=A8Y6LRgw7MHs9bihf0gZPfqp6KDm0Z8k6PJSL9WVxsc,448
872
872
  cs_models/resources/SmartGrid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
873
- cs_models/resources/SmartGrid/models.py,sha256=Ir7ZzVLoKdbUOy8XV84T1c2GVLNcDWNKXg-yaX9uYms,808
874
- cs_models/resources/SmartGrid/schemas.py,sha256=tX10bmOXBump0AN4LOU-jhKRbNYiCzHsCSzHjBwsPJ8,423
873
+ cs_models/resources/SmartGrid/models.py,sha256=X0c4RYF6Db_LmYUvziloX1T8Cr3BdjzLTtKMsfAZ7eI,858
874
+ cs_models/resources/SmartGrid/schemas.py,sha256=eh63N-rXmH-JO4NHG47CxXdI4eSkb0Yta-1y6k0cwxs,567
875
875
  cs_models/resources/SmartGridCell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
876
876
  cs_models/resources/SmartGridCell/models.py,sha256=vPXX8YaVPMjq6IgGhgAy46EnmbFgGCaHlZfNEUd9hq4,1196
877
877
  cs_models/resources/SmartGridCell/schemas.py,sha256=l6kljC4vUd1IoTwezM8UEQWnPoaJru8MqqPKlfyPdNw,766
@@ -1147,7 +1147,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1147
1147
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1148
1148
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1149
1149
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1150
- cs_models-0.0.691.dist-info/METADATA,sha256=nzIXX8FuqKSjRUsk4EyU0oI8rx49YUwb1JXzVnPQokY,792
1151
- cs_models-0.0.691.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1152
- cs_models-0.0.691.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1153
- cs_models-0.0.691.dist-info/RECORD,,
1150
+ cs_models-0.0.692.dist-info/METADATA,sha256=2NnJ0s5stHBuAp5bKYIhGk2ObbXK1H9baxX0Sy4_ySc,792
1151
+ cs_models-0.0.692.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1152
+ cs_models-0.0.692.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1153
+ cs_models-0.0.692.dist-info/RECORD,,