-- Parent hierarchy for mail_folders (Graph childFolders, IMAP nesting).
ALTER TABLE mail_folders
    ADD COLUMN parent_id UUID NULL REFERENCES mail_folders(id) ON DELETE CASCADE;

CREATE INDEX idx_mail_folders_parent ON mail_folders(parent_id);
