You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
471 B
MySQL
19 lines
471 B
MySQL
1 year ago
|
-- CreateTable
|
||
|
CREATE TABLE "User" (
|
||
|
"id" TEXT NOT NULL,
|
||
|
"email" TEXT NOT NULL,
|
||
|
"username" TEXT NOT NULL,
|
||
|
"name" TEXT,
|
||
|
"password" TEXT NOT NULL,
|
||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||
|
|
||
|
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
|
||
|
);
|
||
|
|
||
|
-- CreateIndex
|
||
|
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
|
||
|
|
||
|
-- CreateIndex
|
||
|
CREATE UNIQUE INDEX "User_username_key" ON "User"("username");
|