CREATE TABLE connected_library_packs (
    id TEXT NOT NULL,
    source_url TEXT NOT NULL,
    manifest_url TEXT NOT NULL,

    name TEXT NOT NULL,
    version TEXT NOT NULL,
    version_id TEXT NOT NULL,
    mrpack_url TEXT NOT NULL,
    sha512 TEXT NOT NULL,
    changelog TEXT NULL,

    profile_path TEXT NULL,
    installed_version_id TEXT NULL,
    auto_update INTEGER NOT NULL DEFAULT FALSE,

    last_checked INTEGER NULL,
    last_error TEXT NULL,
    created INTEGER NOT NULL,
    updated INTEGER NOT NULL,

    UNIQUE (source_url),
    PRIMARY KEY (id)
);
