ALTER TABLE "media" ADD COLUMN "resource_id" uuid;--> statement-breakpoint
ALTER TABLE "media" ADD COLUMN "error_message" text;--> statement-breakpoint
ALTER TABLE "media" ADD CONSTRAINT "media_resource_id_resources_id_fk" FOREIGN KEY ("resource_id") REFERENCES "public"."resources"("id") ON DELETE set null ON UPDATE no action;