creative-brain-os / scripts /render_jobs.sql
kpranav022's picture
Claude Opus 5
Ground generation in the real schema, and tune pace against reference ads
6272eef
Raw History Blame Contribute Delete
991 Bytes
create table if not exists render_jobs (
task_id text primary key, -- Celery task id
kind text not null, -- render | edit | clip
label text, -- human summary, e.g. "Candidate 2 · 6 clips"
asset_id uuid, -- generation it belongs to, for linking back
render_id uuid, -- source render for edit/clip; result once ready
file_name text, -- storage key of the result, for a playable URL
status text not null default 'running', -- running | ready | failed
error text,
progress smallint,
stage text,
created_at timestamptz not null default now(),
updated_at timestamptz not null default now()
);
create index if not exists render_jobs_recent_idx
on render_jobs (created_at desc);
alter table render_jobs add column if not exists progress smallint;
alter table render_jobs add column if not exists stage text;