model: Added proper ON DELETE actions to foreign key columns