stremio/apps/master-api/prisma/migrations/20260910010000_viewer_login_locks/migration.sql
Jos Vooges | STH 303383ea4e Add server URL choice, email login, and login lock controls.
Clients can use VMC or a custom server with email/password or device code; API locks after 3 failed logins with admin unlock.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 01:32:35 +02:00

9 lines
265 B
SQL

-- CreateTable
CREATE TABLE "viewer_login_locks" (
"email" TEXT NOT NULL,
"failed_count" INTEGER NOT NULL DEFAULT 0,
"locked_until" TIMESTAMP(3),
"updated_at" TIMESTAMP(3) NOT NULL,
CONSTRAINT "viewer_login_locks_pkey" PRIMARY KEY ("email")
);