CREATE TABLE "file_block" ( "sha256" text PRIMARY KEY NOT NULL, "reason" text NOT NULL, "by_id" text, "created_at" timestamp with time zone DEFAULT now() NOT NULL ); --> statement-breakpoint ALTER TABLE "file_block" ADD CONSTRAINT "file_block_by_id_user_id_fk" FOREIGN KEY ("by_id") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint CREATE INDEX "product_revision_files" ON "product_revision" USING gin ("files");