~bigbes/lethe

ref: f2376137d0f2f8cd5978839c3be663ad85527576 lethe/internal/platform/database/migrations/0002_saved_searches.up.sql -rw-r--r-- 327 bytes
f2376137 — Eugene Blikh web: /login + /auth/callback routes + auth context + config reader a month 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);