ALTER TABLE pads ADD COLUMN file_token TEXT;
ALTER TABLE notes ADD COLUMN file_token TEXT;

CREATE UNIQUE INDEX IF NOT EXISTS idx_pads_file_token ON pads(file_token) WHERE file_token IS NOT NULL;
CREATE UNIQUE INDEX IF NOT EXISTS idx_notes_file_token ON notes(file_token) WHERE file_token IS NOT NULL;
