ava/prisma/migrations/20241121004601_add_emailhashes/migration.sql

7 lines
254 B
MySQL
Raw Permalink Normal View History

2024-11-20 19:36:24 -08:00
-- CreateTable
CREATE TABLE "EmailHashes" (
"forUserId" TEXT NOT NULL PRIMARY KEY,
"sha256" BLOB NOT NULL,
CONSTRAINT "EmailHashes_forUserId_fkey" FOREIGN KEY ("forUserId") REFERENCES "User" ("userId") ON DELETE RESTRICT ON UPDATE CASCADE
);