chore: 2fa added

This commit is contained in:
mahyargdz
2025-07-26 16:12:58 +03:30
parent e921b00da2
commit c6defaa1d8
9 changed files with 301 additions and 31 deletions
@@ -0,0 +1,7 @@
-- Add 2FA fields to users table
ALTER TABLE users
ADD COLUMN is_2fa_enabled BOOLEAN DEFAULT FALSE NOT NULL,
ADD COLUMN two_factor_enabled_at TIMESTAMPTZ DEFAULT NULL;
-- Create index on is_2fa_enabled for query performance
CREATE INDEX idx_users_is_2fa_enabled ON users (is_2fa_enabled);