Skip to content
Discussion options

You must be logged in to vote

Here is my parent model:

class Project(Base):
    __tablename__ = "project"

    id: Mapped[int] = mapped_column(primary_key=True)
    name: Mapped[str] = mapped_column(unique=True)

    settings: Mapped["Settings"] = relationship(
        back_populates="project", cascade="all, delete-orphan", passive_deletes=True
    )

    srss: Mapped[list["SRS"]] = relationship(
        back_populates="project", cascade="all, delete-orphan", passive_deletes=True
    )
    chapters: Mapped[list["Chapter"]] = relationship(
        back_populates="project", cascade="all, delete-orphan", passive_deletes=True
    )
    replacements: Mapped[list["Replacements"]] = relationship(
        back_populates="proj…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Filaton
Comment options

@zzzeek
Comment options

@Filaton
Comment options

Answer selected by Filaton
@zzzeek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants