-- 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;