mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-28 07:19:41 +00:00
13 lines
507 B
MySQL
13 lines
507 B
MySQL
|
-- CreateTable
|
||
|
CREATE TABLE "temporary_auth_tokens" (
|
||
|
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||
|
"token" TEXT NOT NULL,
|
||
|
"userId" INTEGER NOT NULL,
|
||
|
"expiresAt" DATETIME NOT NULL,
|
||
|
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||
|
CONSTRAINT "temporary_auth_tokens_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
||
|
);
|
||
|
|
||
|
-- CreateIndex
|
||
|
CREATE UNIQUE INDEX "temporary_auth_tokens_token_key" ON "temporary_auth_tokens"("token");
|