-- Migration: Add referred_user_id to comments
ALTER TABLE comments ADD COLUMN referred_user_id INT DEFAULT NULL;
ALTER TABLE comments ADD CONSTRAINT fk_comments_referred_user FOREIGN KEY (referred_user_id) REFERENCES users(id) ON DELETE SET NULL;
