How does this handle foreign keys to foreign keys? E.g. addons -> versions -> files? Ideally the deletes cascade where they should and don't where the shouldn't (e.g. we want version -> file to cascade but file -> platform to not cascade).