-- Remove the receiver_type column.
ALTER TABLE notifications
    DROP COLUMN IF EXISTS receiver_type;

-- Re-add the foreign key constraint on user_id referencing users(id).
ALTER TABLE notifications
    ADD CONSTRAINT notifications_user_id_fkey
    FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
