cs-models 0.0.636__py3-none-any.whl → 0.0.638__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,25 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ String,
6
+ Integer,
7
+ DateTime,
8
+ )
9
+
10
+ from ...database import Base
11
+
12
+
13
+ class B3CRSSModel(Base):
14
+ __tablename__ = "b3c_rss"
15
+
16
+ id = Column(Integer, primary_key=True)
17
+ article_id = Column(String(128), nullable=False, index=True)
18
+ article_date = Column(DateTime, nullable=False)
19
+ updated_at = Column(
20
+ DateTime,
21
+ nullable=False,
22
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
23
+ default=lambda: datetime.utcnow(),
24
+ onupdate=lambda: datetime.utcnow(),
25
+ )
@@ -0,0 +1,14 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class B3CRSSResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ article_id = fields.String(required=True)
13
+ article_date = fields.DateTime(required=True)
14
+ updated_at = fields.DateTime()
@@ -0,0 +1,32 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ String,
8
+ ForeignKey,
9
+ )
10
+
11
+ from ...database import Base
12
+
13
+
14
+ class ViewPublicationConditionModel(Base):
15
+ __tablename__ = "_view_publication_condition"
16
+
17
+ id = Column(Integer, primary_key=True)
18
+ condition_id = Column(
19
+ Integer,
20
+ ForeignKey('conditions.id'),
21
+ nullable=False,
22
+ )
23
+ date = Column(DateTime, nullable=False)
24
+ table_name = Column(String(50), nullable=False)
25
+ table_id = Column(Integer, nullable=False)
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 ViewPublicationConditionResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ condition_id = fields.Integer(required=True)
13
+ date = fields.DateTime(required=True)
14
+ table_name = fields.String(required=True)
15
+ table_id = fields.Integer(required=True)
16
+ updated_at = fields.DateTime()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.636
3
+ Version: 0.0.638
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -52,6 +52,9 @@ cs_models/resources/AssistantSession/schemas.py,sha256=v4orSJwiNDzmcjdUHoW9CZpkS
52
52
  cs_models/resources/AssistantUserQuery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  cs_models/resources/AssistantUserQuery/models.py,sha256=fCM9N65laJanb_hVzFgTMzVLV09KuqSQKa27RuHhnMU,1753
54
54
  cs_models/resources/AssistantUserQuery/schemas.py,sha256=dGAHxkNxY7v8iD0EtKi_XJrIBF67ie-r7j6wNnAewP0,716
55
+ cs_models/resources/B3CRSS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
+ cs_models/resources/B3CRSS/models.py,sha256=rl538IgpQSzZu0FzpfxbDDCRWGkAGTpqcw9or5tMOg8,629
57
+ cs_models/resources/B3CRSS/schemas.py,sha256=mArXYiVl15oEFaz9RLQ6WN68ueI0ec83NeLrNnP-sMM,346
55
58
  cs_models/resources/BatchJobStatus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
59
  cs_models/resources/BatchJobStatus/models.py,sha256=gPXjlPRUjuMogwPcwKe-JP2P5GV3V_AcaP4UPJXsW9Y,1117
57
60
  cs_models/resources/BatchJobStatus/schemas.py,sha256=FbUFFFCHZjYj6fF0QI9E2uK4NVR3UxZFSwWRSlPK0gw,679
@@ -975,6 +978,9 @@ cs_models/resources/ViewMergerTarget/schemas.py,sha256=USAO8isTgJz6XUBm2bFnDwGrb
975
978
  cs_models/resources/ViewPublicationCompany/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
976
979
  cs_models/resources/ViewPublicationCompany/models.py,sha256=KfR-jU9RR9ioWyJUnK4qYiQY0JWMWYOIyzLK12WduTw,984
977
980
  cs_models/resources/ViewPublicationCompany/schemas.py,sha256=mV2W3EH5kMRDbQrWHwRli3bBd-yVBA3kfsHYrRFj8VQ,1216
981
+ cs_models/resources/ViewPublicationCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
982
+ cs_models/resources/ViewPublicationCondition/models.py,sha256=7EUdw6jgVOdzpa2auIg4mzbMX-14RAWPciGOfxCO_do,820
983
+ cs_models/resources/ViewPublicationCondition/schemas.py,sha256=zZ-X8VWix3_IkpPviiCHUAu8IvPMzD2MEb_yZybRwRQ,450
978
984
  cs_models/resources/ViewPublicationConditionNorm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
979
985
  cs_models/resources/ViewPublicationConditionNorm/models.py,sha256=OiDevOEh6EhbidsWsiir2tWelX7ncEXkYnNg53WxycM,775
980
986
  cs_models/resources/ViewPublicationConditionNorm/schemas.py,sha256=ESlH3r_INYV7mzfe6CgCjxglfxl0tdtaHqp-qqjnMkY,459
@@ -1039,7 +1045,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1039
1045
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1040
1046
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1041
1047
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1042
- cs_models-0.0.636.dist-info/METADATA,sha256=I89CuZl6JuTDXM6Zz3RuMNiypttHzWYvcL_B-cZwCpI,792
1043
- cs_models-0.0.636.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1044
- cs_models-0.0.636.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1045
- cs_models-0.0.636.dist-info/RECORD,,
1048
+ cs_models-0.0.638.dist-info/METADATA,sha256=eQZImFeS2y18papgqqLWsjQ6u0F6gJGWPJ92umk3S2g,792
1049
+ cs_models-0.0.638.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1050
+ cs_models-0.0.638.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1051
+ cs_models-0.0.638.dist-info/RECORD,,