CREATE TABLE IF NOT EXISTS blobs (
    blob_id BLOB PRIMARY KEY,
    data BLOB NOT NULL,
    total_size INTEGER NOT NULL,
    mime_type TEXT NOT NULL DEFAULT '',
    uploaded_at INTEGER NOT NULL
);
CREATE TABLE IF NOT EXISTS blob_staging (
    blob_hash BLOB NOT NULL,
    offset INTEGER NOT NULL,
    chunk BLOB NOT NULL,
    total_size INTEGER NOT NULL,
    mime_type TEXT NOT NULL DEFAULT '',
    PRIMARY KEY (blob_hash, offset)
);
