-- Migration 008: add is_archived to share_links
-- Required by ShareLink::listActive() / listArchived() / archive() / validateLink().
ALTER TABLE share_links ADD COLUMN is_archived INTEGER NOT NULL DEFAULT 0;

CREATE INDEX IF NOT EXISTS idx_share_links_archived ON share_links(is_archived);
