hunk.code_window:         CTA={
             props.eventTypes.length !== 0 && (
               <CreateNewEventDialog canAddEvents={props.canAddEvents} profiles={props.profiles} />
             )
           }>
           {props.user.plan === "FREE" && !props.canAddEvents && typeof window !== "undefined" && (
             <Alert
               severity="warning"
               title={<>You need to upgrade your plan to have more than one active event type.</>}
               message={
                 <>
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:         {props.user.plan === "FREE" && !props.canAddEvents && (
  
hunk.file_path: pages/event-types/index.tsx
hunk.type: replace
file: -- CreateEnum
  CREATE TYPE "SchedulingType" AS ENUM ('roundRobin', 'collective');
  
  -- DropForeignKey
  ALTER TABLE "EventType" DROP CONSTRAINT "EventType_userId_fkey";
  
  -- AlterTable
  ALTER TABLE "EventType" ADD COLUMN     "schedulingType" "SchedulingType",
  ADD COLUMN     "teamId" INTEGER;
  
  -- CreateTable
  CREATE TABLE "_user_eventtype" (
      "A" INTEGER NOT NULL,
      "B" INTEGER NOT NULL
  );
  
  -- CreateIndex
  CREATE UNIQUE INDEX "_user_eventtype_AB_unique" ON "_user_eventtype"("A", "B");
  
  -- CreateIndex
  CREATE INDEX "_user_eventtype_B_index" ON "_user_eventtype"("B");
  
  -- AddForeignKey
  ALTER TABLE "EventType" ADD FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_user_eventtype" ADD FOREIGN KEY ("A") REFERENCES "EventType"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_user_eventtype" ADD FOREIGN KEY ("B") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  