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

8 lines
328 B
SQL

-- 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
);