comicbox/prisma/migrations/20220724214601_add_characters_table/migration.sql

9 lines
328 B
MySQL
Raw Permalink Normal View History

-- CreateTable
CREATE TABLE "ComicCharacter" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"comicId" INTEGER NOT NULL,
"shortName" TEXT NOT NULL,
"longName" TEXT NOT NULL,
CONSTRAINT "ComicCharacter_comicId_fkey" FOREIGN KEY ("comicId") REFERENCES "Comic" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
);