Scheduling infrastructure for absolutely everyone.
added migration
Malte Delfs0dce92d4aeab
diff --git a/prisma/migrations/20210615140247_added_selected_calendar/migration.sql b/prisma/migrations/20210615140247_added_selected_calendar/migration.sqlnew file mode 100644index 00000000000..cdb2777880e--- /dev/null+++ b/prisma/migrations/20210615140247_added_selected_calendar/migration.sql@@ -0,0 +1,11 @@+-- CreateTable+CREATE TABLE "SelectedCalendar" (+ "userId" INTEGER NOT NULL,+ "integration" TEXT NOT NULL,+ "externalId" TEXT NOT NULL,++ PRIMARY KEY ("userId","integration","externalId")+);++-- AddForeignKey+ALTER TABLE "SelectedCalendar" ADD FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;