CREATE TABLE "procedure_timeslot" (
    "id" SERIAL NOT NULL,
    "userId" INTEGER NOT NULL,
    "data" JSONB NOT NULL,
    CONSTRAINT "procedure_timeslot_pkey" PRIMARY KEY ("id")
);

ALTER TABLE "procedure_timeslot" ADD CONSTRAINT "procedure_timeslot_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;

CREATE UNIQUE INDEX "procedure_timeslot_userId_key" ON "procedure_timeslot"("userId");
