feat: publish readable model ids and media task adapters

This commit is contained in:
wlx committed 2026-09-29 01:29:07 +08:00
1 parent ba98b47618
commit 94eaee7b95
16 files changed
+654 -41

No files matched your search

@@ -0,0 +1,6 @@
-- Async image/audio relays use the same durable queue and settlement path as
-- video/3D tasks. Keep the check explicit so unsupported task types fail at
-- the API boundary rather than being persisted as an unpollable job.
ALTER TABLE model_tasks DROP CONSTRAINT IF EXISTS model_tasks_task_type_check;
ALTER TABLE model_tasks ADD CONSTRAINT model_tasks_task_type_check
CHECK (task_type IN ('3d', 'video', 'image', 'audio'));
@@ -0,0 +1 @@
ALTER TABLE model_tasks ADD COLUMN IF NOT EXISTS input jsonb NOT NULL DEFAULT '{}'::jsonb;