-- +goose Up
CREATE TABLE transcribe_jobs (
    id TEXT PRIMARY KEY,
    state TEXT NOT NULL,
    file_id TEXT,
    is_error BOOLEAN NOT NULL,
    error_text TEXT,
    worker TEXT,
    acquired_at DATETIME,
    created_at DATETIME NOT NULL,
    
    FOREIGN KEY (file_id) REFERENCES files(id)
);

-- +goose Down
DROP TABLE transcribe_jobs;
