-- AI-generated insights for individual photos CREATE TABLE IF NOT EXISTS photo_insights ( id INTEGER PRIMARY KEY NOT NULL, file_path TEXT NOT NULL UNIQUE, -- Full path to the photo title TEXT NOT NULL, -- "At the beach with Sarah" summary TEXT NOT NULL, -- 2-3 sentence description generated_at BIGINT NOT NULL, model_version TEXT NOT NULL ); CREATE INDEX IF NOT EXISTS idx_photo_insights_path ON photo_insights(file_path);