mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2025-12-31 06:12:39 +00:00
add createdAt, updatedAt
This commit is contained in:
14
prisma/migrations/20221214110358_init/migration.sql
Normal file
14
prisma/migrations/20221214110358_init/migration.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "user" (
|
||||
"uuid" UUID NOT NULL,
|
||||
"firstName" TEXT NOT NULL,
|
||||
"lastName" TEXT NOT NULL,
|
||||
"email" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "user_pkey" PRIMARY KEY ("uuid")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "user_email_key" ON "user"("email");
|
||||
Reference in New Issue
Block a user