-- CreateTable
CREATE TABLE "plan_drafts" (
    "id" TEXT NOT NULL PRIMARY KEY,
    "token" TEXT NOT NULL,
    "email" TEXT NOT NULL,
    "payload" TEXT NOT NULL,
    "created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updated_at" DATETIME NOT NULL,
    "expires_at" DATETIME NOT NULL
);

-- CreateIndex
CREATE UNIQUE INDEX "plan_drafts_token_key" ON "plan_drafts"("token");

-- CreateIndex
CREATE INDEX "plan_drafts_email_idx" ON "plan_drafts"("email");
