ALTER TABLE "legal_works" ADD COLUMN "basic_contract_id" integer;--> statement-breakpoint
ALTER TABLE "legal_works" ADD CONSTRAINT "legal_works_basic_contract_id_basic_contract_id_fk" FOREIGN KEY ("basic_contract_id") REFERENCES "public"."basic_contract"("id") ON DELETE set null ON UPDATE no action;