ava/prisma/migrations/20240823024455_add_alt_text_and_source/migration.sql
May 968a49bd46
add alt text, source
this code is fucking terrible. i'll clean it up later
2024-08-22 21:31:21 -07:00

13 lines
381 B
SQL

-- CreateTable
CREATE TABLE "Avatar" (
"id" TEXT NOT NULL PRIMARY KEY,
"userId" TEXT NOT NULL,
CONSTRAINT "Avatar_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("userId") ON DELETE RESTRICT ON UPDATE CASCADE
);
-- CreateIndex
CREATE UNIQUE INDEX "Avatar_id_key" ON "Avatar"("id");
-- CreateIndex
CREATE UNIQUE INDEX "Avatar_userId_key" ON "Avatar"("userId");