mirror of
git://f0xx.org/ac/ac-ms-graphs
synced 2026-07-29 04:39:04 +03:00
7 lines
438 B
SQL
7 lines
438 B
SQL
-- SQLite graph_sessions indexes (table may already exist via GraphRepository::ensureSchema).
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_graph_company_time ON graph_sessions (company_id, started_at_ms);
|
|
CREATE INDEX IF NOT EXISTS idx_graph_user_time ON graph_sessions (user_id, started_at_ms);
|
|
CREATE INDEX IF NOT EXISTS idx_graph_started ON graph_sessions (started_at_ms);
|
|
CREATE INDEX IF NOT EXISTS idx_graph_device ON graph_sessions (device_id);
|