Initial commit: YouTube Studio Flow (backend, frontend, infrastructure, docs)

This commit is contained in:
2026-08-11 12:27:44 +02:00
commit d5af006443
304 changed files with 74604 additions and 0 deletions
@@ -0,0 +1,17 @@
-- Add collaboratorIds directly to Video
ALTER TABLE "Video" ADD COLUMN "collaboratorIds" JSONB NOT NULL DEFAULT '[]';
-- Migrate existing data from VideoConfig.collaboratorIds into Video.collaboratorIds
UPDATE "Video" v
SET "collaboratorIds" = vc."collaboratorIds"
FROM "VideoConfig" vc
WHERE vc."videoId" = v.id
AND vc."collaboratorIds" IS NOT NULL
AND vc."collaboratorIds"::text != '[]'
AND vc."collaboratorIds"::text != 'null';
-- Drop VideoCollaborator join table
DROP TABLE "VideoCollaborator";
-- Remove collaboratorIds from VideoConfig
ALTER TABLE "VideoConfig" DROP COLUMN "collaboratorIds";