Files
NextChair/prisma/migrations-postgresql-archive/20260802204707_staff_operations/migration.sql
T
2026-08-03 21:15:24 +01:00

14 lines
473 B
SQL

-- AlterTable
ALTER TABLE "Appointment" ADD COLUMN "createdByUserId" TEXT;
-- AlterTable
ALTER TABLE "CustomerNote" ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
-- AlterTable
ALTER TABLE "TimeOff" ADD COLUMN "endMinutes" INTEGER,
ADD COLUMN "startMinutes" INTEGER;
-- AddForeignKey
ALTER TABLE "Appointment" ADD CONSTRAINT "Appointment_createdByUserId_fkey" FOREIGN KEY ("createdByUserId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;