HifiPlanet-Website/hifi/api/database/migration_2fa.sql
Maaxxs f3ab7d0816 Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend)
React/Vite Frontend (hifi-src) + PHP/MariaDB Backend (hifi/api) fuer
den Car-Hifi Umbau-Shop HifiPlanet in Amorbach, inkl. Admin-Panel,
2FA, Wartungsmodus, Cookie-Consent und rechtlichen Pflichtseiten.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 13:37:06 +02:00

6 lines
272 B
SQL

USE hifi_shop;
ALTER TABLE admin_users
ADD COLUMN two_factor_secret VARCHAR(64) NULL AFTER is_super_admin,
ADD COLUMN two_factor_enabled TINYINT(1) NOT NULL DEFAULT 0 AFTER two_factor_secret,
ADD COLUMN two_factor_recovery_codes TEXT NULL AFTER two_factor_enabled;