feat: email verification + delete confirmation + smtp/cors/prod hardening
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-- Harden email token lifecycle (used marker + lookup index)
|
||||
ALTER TABLE "EmailToken"
|
||||
ADD COLUMN IF NOT EXISTS "usedAt" TIMESTAMP(3);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "EmailToken_userId_type_expiresAt_idx"
|
||||
ON "EmailToken"("userId", "type", "expiresAt");
|
||||
Reference in New Issue
Block a user