mirror of
https://github.com/t3xhno/nestjs-auth.git
synced 2024-11-23 02:33:51 +00:00
25 lines
616 B
MySQL
25 lines
616 B
MySQL
|
-- CreateTable
|
||
|
CREATE TABLE "User" (
|
||
|
"id" SERIAL NOT NULL,
|
||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||
|
"email" TEXT NOT NULL,
|
||
|
"hash" TEXT NOT NULL,
|
||
|
"firstName" TEXT,
|
||
|
"lastName" TEXT,
|
||
|
|
||
|
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
|
||
|
);
|
||
|
|
||
|
-- CreateTable
|
||
|
CREATE TABLE "Bookmark" (
|
||
|
"id" SERIAL NOT NULL,
|
||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||
|
"title" TEXT NOT NULL,
|
||
|
"description" TEXT,
|
||
|
"link" TEXT NOT NULL,
|
||
|
|
||
|
CONSTRAINT "Bookmark_pkey" PRIMARY KEY ("id")
|
||
|
);
|