ALTER TABLE "properties" ADD COLUMN "parent_id" uuid;--> statement-breakpoint ALTER TABLE "properties" ADD CONSTRAINT "properties_parent_id_properties_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."properties"("id") ON DELETE restrict ON UPDATE no action;--> statement-breakpoint CREATE INDEX "properties_by_parent" ON "properties" USING btree ("company_id","parent_id");