cs-models 0.0.702__py3-none-any.whl → 0.0.704__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,29 @@
1
+ from datetime import datetime
2
+
3
+ from sqlalchemy import (
4
+ Column,
5
+ Integer,
6
+ DateTime,
7
+ String,
8
+ Text,
9
+ )
10
+
11
+ from ...database import Base
12
+
13
+
14
+ class CampaignTrackerModel(Base):
15
+ __tablename__ = "campaign_tracker"
16
+
17
+ id = Column(Integer, primary_key=True)
18
+ name = Column(String(128), nullable=False)
19
+ email = Column(String(128), nullable=True)
20
+ company = Column(String(128), nullable=True)
21
+ promo_code = Column(String(50), nullable=True)
22
+ campaign_description = Column(Text, nullable=True)
23
+ updated_at = Column(
24
+ DateTime,
25
+ nullable=False,
26
+ # https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
27
+ default=lambda: datetime.utcnow(),
28
+ onupdate=lambda: datetime.utcnow(),
29
+ )
@@ -0,0 +1,17 @@
1
+ from marshmallow import (
2
+ Schema,
3
+ fields,
4
+ validate,
5
+ )
6
+
7
+
8
+ class CampaignTrackerResourceSchema(Schema):
9
+ not_blank = validate.Length(min=1, error='Field cannot be blank')
10
+
11
+ id = fields.Integer(dump_only=True)
12
+ name = fields.String(required=True)
13
+ email = fields.String(allow_none=True)
14
+ company = fields.String(allow_none=True)
15
+ promo_code = fields.String(allow_none=True)
16
+ campaign_description = fields.String(allow_none=True)
17
+ updated_at = fields.DateTime(dump_only=True)
@@ -19,6 +19,7 @@ class WorkbookModel(Base):
19
19
  user_id = Column(String(128), nullable=False)
20
20
  workbook_name = Column(String(128), nullable=False)
21
21
  is_deleted = Column(Boolean, nullable=True)
22
+ is_public = Column(Boolean, nullable=True)
22
23
  created_at = Column(DateTime, nullable=False)
23
24
  updated_at = Column(
24
25
  DateTime,
@@ -20,5 +20,6 @@ class WorkbookResourceSchema(Schema):
20
20
  dump_only=True,
21
21
  )
22
22
  is_deleted = fields.Boolean(allow_none=True)
23
+ is_public = fields.Boolean(allow_none=True)
23
24
  created_at = fields.DateTime(required=True)
24
25
  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.702
3
+ Version: 0.0.704
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -79,6 +79,9 @@ cs_models/resources/BiomarkerSyn/schemas.py,sha256=YTv8CY6hcJcVRpQKlSdZdyD2jwF1V
79
79
  cs_models/resources/CTProductsView/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
80
  cs_models/resources/CTProductsView/models.py,sha256=MhnIRsYjgkkuSSUF6JkqrHzFMqzbbSsIU-CkEjSEEDI,1042
81
81
  cs_models/resources/CTProductsView/schemas.py,sha256=7lU2GfAVYxVek1TG-w5qdFA8Th2KZvfOtkLfMl5lDo4,1254
82
+ cs_models/resources/CampaignTracker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
+ cs_models/resources/CampaignTracker/models.py,sha256=J-bspCBAmIiDi6ISKujmAovEteH2IlHi_SVA5nSqzgQ,789
84
+ cs_models/resources/CampaignTracker/schemas.py,sha256=J3uS2XjpoHpdZoKL4VDQrIpznzY0-f74W2okB3_8Kso,507
82
85
  cs_models/resources/CatalystConcept/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
86
  cs_models/resources/CatalystConcept/models.py,sha256=CNRm9nGS5PWujiDRpI1zKfo4d59gYQKtPglSF6Tk19c,945
84
87
  cs_models/resources/CatalystConcept/schemas.py,sha256=4w1cUhutUB_mKXBcvyHC9kyb0QrxNKgxoKF7PUQd-0w,507
@@ -1108,8 +1111,8 @@ cs_models/resources/WatchlistDigest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
1108
1111
  cs_models/resources/WatchlistDigest/models.py,sha256=wKWY8UGP1xZpSFKPWqJF3E5cpOhdis4KWWPRkKfRFz0,919
1109
1112
  cs_models/resources/WatchlistDigest/schemas.py,sha256=p7jZ8JFJoV2KeSUUPursHyHzbk4Ouk2TCKHLqE5ViVo,494
1110
1113
  cs_models/resources/Workbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1111
- cs_models/resources/Workbook/models.py,sha256=4p2R8WCYYX0FOSXG0b2YhmuzKHTxYY4WZVi9X7e9GKQ,1003
1112
- cs_models/resources/Workbook/schemas.py,sha256=xcNoPzHK6ER06XA3fAvX3x7VtX47aBP0vrIqiJvUVKw,688
1114
+ cs_models/resources/Workbook/models.py,sha256=iQ3pMlaxaHhc_A1T8Fxrjsn6YR0q-NoeMyZQWHWnE2g,1050
1115
+ cs_models/resources/Workbook/schemas.py,sha256=5e-5mxEuwIn40VxYoP4K7xer8YpO0VbWXoKXCJtvj-s,736
1113
1116
  cs_models/resources/WorkbookBlock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1114
1117
  cs_models/resources/WorkbookBlock/models.py,sha256=hYZkSFR5p6nVMUbb6ZQxvXvB6XMPlgEDliBx_k0HZ40,1659
1115
1118
  cs_models/resources/WorkbookBlock/schemas.py,sha256=lRon0US-VHMOGypaiUSZsskgFpjNEtmFEk9nFU7DLnI,1847
@@ -1162,7 +1165,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1162
1165
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1163
1166
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1164
1167
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1165
- cs_models-0.0.702.dist-info/METADATA,sha256=jDz6VBh0c8nk0nNteKgDaugeFN-uvoi0rBlxUWaOy3Q,792
1166
- cs_models-0.0.702.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1167
- cs_models-0.0.702.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1168
- cs_models-0.0.702.dist-info/RECORD,,
1168
+ cs_models-0.0.704.dist-info/METADATA,sha256=NqEmm8LK13zEIaAB8u_nunjB6YoYcRqGJYGM3hksHXo,792
1169
+ cs_models-0.0.704.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1170
+ cs_models-0.0.704.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1171
+ cs_models-0.0.704.dist-info/RECORD,,