1
0
mirror of git://f0xx.org/ac/ac-ms-graphs synced 2026-07-29 06:37:54 +03:00
Files
ac-ms-graphs/sql/migrations/006_graph_sessions.sqlite.sql
Anton Afanasyeu 224dc80d6d initial
2026-06-23 12:29:33 +02:00

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);