f3-data-models 0.5.13__py3-none-any.whl → 0.5.14__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.
f3_data_models/models.py CHANGED
@@ -745,10 +745,12 @@ class Event(Base):
745
745
  event_x_event_types: Mapped[List[EventType_x_Event]] = relationship(
746
746
  back_populates="event",
747
747
  passive_deletes=True,
748
+ cascade="all, delete-orphan",
748
749
  )
749
750
  event_x_event_tags: Mapped[Optional[List[EventTag_x_Event]]] = relationship(
750
751
  back_populates="event",
751
752
  passive_deletes=True,
753
+ cascade="all, delete-orphan",
752
754
  )
753
755
 
754
756
 
@@ -842,12 +844,18 @@ class EventInstance(Base):
842
844
  event_instances_x_event_types: Mapped[List[EventType_x_EventInstance]] = relationship(
843
845
  back_populates="event_instance",
844
846
  passive_deletes=True,
847
+ cascade="all, delete-orphan",
845
848
  )
846
849
  event_instances_x_event_tags: Mapped[Optional[List[EventTag_x_EventInstance]]] = relationship(
847
850
  back_populates="event_instance",
848
851
  passive_deletes=True,
852
+ cascade="all, delete-orphan",
853
+ )
854
+ attendance: Mapped[List["Attendance"]] = relationship(
855
+ back_populates="event_instance",
856
+ passive_deletes=True,
857
+ cascade="all, delete-orphan",
849
858
  )
850
- attendance: Mapped[List["Attendance"]] = relationship(back_populates="event_instance", passive_deletes=True)
851
859
 
852
860
 
853
861
  class AttendanceType(Base):
@@ -1018,7 +1026,7 @@ class Attendance(Base):
1018
1026
  innerjoin=False, cascade="expunge", secondary="users", viewonly=True
1019
1027
  )
1020
1028
  attendance_x_attendance_types: Mapped[List[Attendance_x_AttendanceType]] = relationship(
1021
- back_populates="attendance", passive_deletes=True
1029
+ back_populates="attendance", passive_deletes=True, cascade="all, delete-orphan"
1022
1030
  )
1023
1031
  attendance_types: Mapped[List[AttendanceType]] = relationship(
1024
1032
  secondary="attendance_x_attendance_types",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: f3-data-models
3
- Version: 0.5.13
3
+ Version: 0.5.14
4
4
  Summary: The data schema and models for F3 Nation applications.
5
5
  License: MIT
6
6
  Author: Evan Petzoldt
@@ -0,0 +1,7 @@
1
+ f3_data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ f3_data_models/models.py,sha256=b_hKsW-5aFbFXsUohdiaVa5rN8xfb0EQ6NvXfTNSoAo,52919
3
+ f3_data_models/testing.py,sha256=uHHgrfMOpUvu6-yOyuMsGadyeN-zuAFRYuGQNpXX4Lk,598
4
+ f3_data_models/utils.py,sha256=LBNy7BXwRY0tqNKGUBoYi6-1Ch9dSLjGysLoes1Jfys,12083
5
+ f3_data_models-0.5.14.dist-info/METADATA,sha256=idfSh-vccUa3BVQbtN-Du6RSSIUAULLz32wh4qzXJy8,3675
6
+ f3_data_models-0.5.14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
7
+ f3_data_models-0.5.14.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- f3_data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- f3_data_models/models.py,sha256=tbsmvboHRCgXAfHKZfq0HhGRR1cEzTb3f7PAKhbP9Jo,52676
3
- f3_data_models/testing.py,sha256=uHHgrfMOpUvu6-yOyuMsGadyeN-zuAFRYuGQNpXX4Lk,598
4
- f3_data_models/utils.py,sha256=LBNy7BXwRY0tqNKGUBoYi6-1Ch9dSLjGysLoes1Jfys,12083
5
- f3_data_models-0.5.13.dist-info/METADATA,sha256=IxrrWEj2LnCHn3Tmpn1AB-8-HM935Z6trYeJtzOmjiw,3675
6
- f3_data_models-0.5.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
7
- f3_data_models-0.5.13.dist-info/RECORD,,