cs-models 0.0.621__py3-none-any.whl → 0.0.623__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/MeetingDataOutbox/__init__.py +0 -0
- cs_models/resources/MeetingDataOutbox/models.py +42 -0
- cs_models/resources/MeetingDataOutbox/schemas.py +21 -0
- cs_models/resources/MeetingDataOutboxRow/__init__.py +0 -0
- cs_models/resources/MeetingDataOutboxRow/models.py +30 -0
- cs_models/resources/MeetingDataOutboxRow/schemas.py +14 -0
- {cs_models-0.0.621.dist-info → cs_models-0.0.623.dist-info}/METADATA +1 -1
- {cs_models-0.0.621.dist-info → cs_models-0.0.623.dist-info}/RECORD +10 -4
- {cs_models-0.0.621.dist-info → cs_models-0.0.623.dist-info}/WHEEL +0 -0
- {cs_models-0.0.621.dist-info → cs_models-0.0.623.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
String,
|
|
7
|
+
DateTime,
|
|
8
|
+
Boolean,
|
|
9
|
+
ForeignKey,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
from ...database import Base
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class MeetingDataOutboxModel(Base):
|
|
16
|
+
__tablename__ = "meeting_data_outbox"
|
|
17
|
+
|
|
18
|
+
id = Column(Integer, primary_key=True)
|
|
19
|
+
meeting_name = Column(String(191), nullable=False, index=True)
|
|
20
|
+
start_date = Column(DateTime, nullable=False)
|
|
21
|
+
end_date = Column(DateTime, nullable=False)
|
|
22
|
+
from_website = Column(Boolean, nullable=True)
|
|
23
|
+
meeting_bucket_id = Column(
|
|
24
|
+
Integer,
|
|
25
|
+
ForeignKey('meeting_bucket.id'),
|
|
26
|
+
nullable=True,
|
|
27
|
+
)
|
|
28
|
+
reviewed = Column(Boolean, nullable=True)
|
|
29
|
+
submitted = Column(Boolean, nullable=True)
|
|
30
|
+
submitted_date = Column(DateTime, nullable=True)
|
|
31
|
+
file_id = Column(
|
|
32
|
+
Integer,
|
|
33
|
+
ForeignKey('files.id'),
|
|
34
|
+
nullable=False,
|
|
35
|
+
)
|
|
36
|
+
updated_at = Column(
|
|
37
|
+
DateTime,
|
|
38
|
+
nullable=False,
|
|
39
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
40
|
+
default=lambda: datetime.utcnow(),
|
|
41
|
+
onupdate=lambda: datetime.utcnow(),
|
|
42
|
+
)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingDataOutboxResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
meeting_name = fields.String(required=True)
|
|
13
|
+
start_date = fields.DateTime(required=True)
|
|
14
|
+
end_date = fields.DateTime(required=True)
|
|
15
|
+
from_website = fields.Boolean(allow_none=True)
|
|
16
|
+
meeting_bucket_id = fields.Integer(allow_none=True)
|
|
17
|
+
reviewed = fields.Boolean(allow_none=True)
|
|
18
|
+
submitted = fields.Boolean(allow_none=True)
|
|
19
|
+
submitted_date = fields.DateTime(allow_none=True)
|
|
20
|
+
file_id = fields.Integer(required=True)
|
|
21
|
+
updated_at = fields.DateTime()
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
ForeignKey,
|
|
8
|
+
Text,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class MeetingDataOutboxRowModel(Base):
|
|
15
|
+
__tablename__ = "meeting_data_outbox_rows"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
meeting_data_outbox_id = Column(
|
|
19
|
+
Integer,
|
|
20
|
+
ForeignKey('meeting_data_outbox.id'),
|
|
21
|
+
nullable=False,
|
|
22
|
+
)
|
|
23
|
+
row = Column(Text, nullable=True)
|
|
24
|
+
updated_at = Column(
|
|
25
|
+
DateTime,
|
|
26
|
+
nullable=False,
|
|
27
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
28
|
+
default=lambda: datetime.utcnow(),
|
|
29
|
+
onupdate=lambda: datetime.utcnow(),
|
|
30
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MeetingDataOutboxRowResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
id = fields.Integer(dump_only=True)
|
|
12
|
+
meeting_data_outbox_id = fields.Integer(required=True)
|
|
13
|
+
row = fields.String(allow_none=True)
|
|
14
|
+
updated_at = fields.DateTime()
|
|
@@ -487,6 +487,12 @@ cs_models/resources/Meeting/schemas.py,sha256=qLC1lGH6__gHObxo0ZX-rAYg-rvEte2Fct
|
|
|
487
487
|
cs_models/resources/MeetingBucket/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
488
488
|
cs_models/resources/MeetingBucket/models.py,sha256=OfjmVYISxesbvtu4E2bltlpvzFZluds7arFwjxma3S8,600
|
|
489
489
|
cs_models/resources/MeetingBucket/schemas.py,sha256=oZm2XHNaWEh-aoqPbsS405BGZoo06QGPtHNM6Jf-MkQ,312
|
|
490
|
+
cs_models/resources/MeetingDataOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
491
|
+
cs_models/resources/MeetingDataOutbox/models.py,sha256=2y4btxW2Z6axPad0gFXvQ9fIqB-t1RfwdKSagYJ9Sns,1145
|
|
492
|
+
cs_models/resources/MeetingDataOutbox/schemas.py,sha256=7B8lRKfeEJ7HVaAVppMOwKlsCjcAnJnRFcYf77GnEH8,703
|
|
493
|
+
cs_models/resources/MeetingDataOutboxRow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
494
|
+
cs_models/resources/MeetingDataOutboxRow/models.py,sha256=ZLxPVkhRlC8EOslippMynlCz3i2IZp06WVA73_DzBbo,725
|
|
495
|
+
cs_models/resources/MeetingDataOutboxRow/schemas.py,sha256=sxmswoTLBtpTV3d4ihRQwnIR96dmFKYglNvSpgtswAs,364
|
|
490
496
|
cs_models/resources/MeetingOutbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
491
497
|
cs_models/resources/MeetingOutbox/models.py,sha256=Ij5LNe2pEP_JnnIbIipreHeu8YYcWjOo37GTokCoNdc,975
|
|
492
498
|
cs_models/resources/MeetingOutbox/schemas.py,sha256=InvJJIyi596Vud64N8tUBDOYi8gpS6aRLtO6sjUgAHI,543
|
|
@@ -1027,7 +1033,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1027
1033
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1028
1034
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1029
1035
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1030
|
-
cs_models-0.0.
|
|
1031
|
-
cs_models-0.0.
|
|
1032
|
-
cs_models-0.0.
|
|
1033
|
-
cs_models-0.0.
|
|
1036
|
+
cs_models-0.0.623.dist-info/METADATA,sha256=zdsX8-GUFmEAoBr0FJGWuTwZZ67LEU_PXE1IiJdcImg,792
|
|
1037
|
+
cs_models-0.0.623.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1038
|
+
cs_models-0.0.623.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1039
|
+
cs_models-0.0.623.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|