Change cascade types to cascade on delete.
Merge branch 'backend/models2.0' into develop