···165165 CREATE INDEX IF NOT EXISTS idx_comments_subject ON comments(subject_uri);
166166 CREATE INDEX IF NOT EXISTS idx_comments_author ON comments(author_did);
167167168168+ CREATE TABLE IF NOT EXISTS mentions (
169169+ uri TEXT PRIMARY KEY,
170170+ talk_uri TEXT,
171171+ author_did TEXT NOT NULL,
172172+ author_handle TEXT,
173173+ text TEXT,
174174+ created_at TEXT NOT NULL,
175175+ talk_offset_ms INTEGER,
176176+ byte_position INTEGER,
177177+ likes INTEGER DEFAULT 0,
178178+ reposts INTEGER DEFAULT 0,
179179+ replies INTEGER DEFAULT 0,
180180+ parent_uri TEXT,
181181+ mention_type TEXT DEFAULT 'during_talk',
182182+ indexed_at TEXT NOT NULL
183183+ );
184184+185185+ CREATE INDEX IF NOT EXISTS idx_mentions_talk ON mentions(talk_uri, talk_offset_ms);
186186+ CREATE INDEX IF NOT EXISTS idx_mentions_parent ON mentions(parent_uri);
187187+168188 CREATE TABLE IF NOT EXISTS profiles (
169189 did TEXT PRIMARY KEY,
170190 handle TEXT,