~bigbes/lethe

ref: 96e95ab9e44d2234ab036319836a5087eb4c2a2f lethe/internal/platform/database/migrations/0002_saved_searches.up.sql -rw-r--r-- 327 bytes
96e95ab9 — Eugene Blikh fix: add tool column to search table; remove conversation bleed from comments 24 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
CREATE TABLE saved_searches (
    owner      TEXT NOT NULL,
    name       TEXT NOT NULL,
    query      TEXT NOT NULL,
    created_at INTEGER NOT NULL,
    updated_at INTEGER NOT NULL,
    PRIMARY KEY (owner, name)
) WITHOUT ROWID;
CREATE INDEX idx_saved_searches_owner_updated
    ON saved_searches (owner, updated_at DESC);