Add event delete tests

This commit is contained in:
Sebastiaan
2025-06-09 16:21:52 +02:00
parent fb0135cf38
commit bf3fa03db0
3 changed files with 68 additions and 4 deletions

View File

@@ -76,8 +76,8 @@ class Event(mixin.RowId, EventBase, table=True):
# --- back_populates links -------------------------------------------------
# --- many-to-many links ---------------------------------------------------
user_links: list["EventUserLink"] = Relationship(back_populates="event")
team_links: list["Team"] = Relationship(back_populates="event")
user_links: list["EventUserLink"] = Relationship(back_populates="event", cascade_delete=True)
team_links: list["Team"] = Relationship(back_populates="event", cascade_delete=True)
# --- CRUD actions ---------------------------------------------------------
@classmethod