Skip to content

An auto-cleanup property for relations #12

Description

@mzabaluev

It would be nice to support a flag in schema for relation properties that would make Serverbone remove the related models' data when the relating model is destroyed. Currently the model's implementation has to do the cleanup explicitly, which is contrary to the idea of schematically defined relations.

Ideas on a mnemonic name for the feature are welcome. This might be done as a general marker for a parent-child relation. In the SQL world the equivalent feature is typically implemented with ON DELETE CASCADE.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions