cal.pub0.org/prisma/migrations/20210615140247_added_select.../migration.sql

12 lines
341 B
MySQL
Raw Normal View History

2021-06-15 14:03:41 +00:00
-- 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;