You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
563 B
22 lines
563 B
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the `Profil` table. If the table is not empty, all the data it contains will be lost.
|
|
|
|
*/
|
|
-- DropTable
|
|
PRAGMA foreign_keys=off;
|
|
DROP TABLE "Profil";
|
|
PRAGMA foreign_keys=on;
|
|
|
|
-- CreateTable
|
|
CREATE TABLE "Profile" (
|
|
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
"bio" TEXT,
|
|
"userId" INTEGER NOT NULL,
|
|
CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
);
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "Profile_userId_key" ON "Profile"("userId");
|