CREATE TABLE IF NOT EXISTS local_files_index (
    id          TEXT    PRIMARY KEY,
    rel_path    TEXT    NOT NULL UNIQUE,
    title       TEXT    NOT NULL,
    duration_secs INTEGER NOT NULL DEFAULT 0,
    year        INTEGER,
    tags        TEXT    NOT NULL DEFAULT '[]',
    top_dir     TEXT    NOT NULL DEFAULT '',
    scanned_at  TEXT    NOT NULL
);
