Files
2025-04-10 23:07:21 -03:00

9 lines
405 B
SQL

-- AlterTable
ALTER TABLE "atendimentos" ADD COLUMN "atendimentoInicialId" UUID;
-- CreateIndex
CREATE INDEX "atendimentos_atendimentoInicialId_idx" ON "atendimentos"("atendimentoInicialId");
-- AddForeignKey
ALTER TABLE "atendimentos" ADD CONSTRAINT "atendimentos_atendimentoInicialId_fkey" FOREIGN KEY ("atendimentoInicialId") REFERENCES "atendimentos"("id") ON DELETE SET NULL ON UPDATE CASCADE;