CREATE TABLE "refund_intent_line_ext" (
	"refund_intent_id" uuid PRIMARY KEY NOT NULL,
	"order_line_id" uuid NOT NULL
);
--> statement-breakpoint
ALTER TABLE "refund_intent_line_ext" ADD CONSTRAINT "refund_intent_line_ext_refund_intent_id_fk" FOREIGN KEY ("refund_intent_id") REFERENCES "public"."refund_intent"("id") ON DELETE cascade ON UPDATE no action;
--> statement-breakpoint
ALTER TABLE "refund_intent_line_ext" ADD CONSTRAINT "refund_intent_line_ext_order_line_id_fk" FOREIGN KEY ("order_line_id") REFERENCES "public"."order_line"("id") ON DELETE restrict ON UPDATE no action;
--> statement-breakpoint
CREATE INDEX "refund_intent_line_ext_order_line_idx" ON "refund_intent_line_ext" USING btree ("order_line_id");
