finances/prisma/migrations/20240307000000_add_lucia_setup/migration.sql
2024-03-08 20:24:40 +01:00

22 lines
504 B
SQL

-- CreateTable
CREATE TABLE "lucia_user"
(
"id" TEXT NOT NULL,
"username" TEXT NOT NULL,
"password" TEXT NOT NULL,
CONSTRAINT "lucia_user_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "lucia_session"
(
"id" TEXT NOT NULL,
"userId" TEXT NOT NULL,
"expiresAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "lucia_session_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "lucia_user_username_key" ON "lucia_user" ("username");