trading-platform-database-v2/ddl/schemas/auth/tables
Adrian Flores Cortes 82d6e608b1 [ST-4.1] feat: Add optimized partial index for auth.users.locked_until
- Create migration 2026-02-03_add_auth_locked_index.sql
- Add partial index on locked_until with active lockout condition
- Replace previous generic locked_until index with optimized version
- Index filters for locked_until IS NOT NULL AND locked_until > NOW()
- Improves query performance for account unlock validation
- Resolves GAP-009

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 23:56:26 -06:00
..
01-users.sql [ST-4.1] feat: Add optimized partial index for auth.users.locked_until 2026-02-03 23:56:26 -06:00
02-user_profiles.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
03-oauth_accounts.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
04-sessions.sql feat: Update DDL schemas and add new structures 2026-01-30 12:24:23 -06:00
05-email_verifications.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
06-phone_verifications.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
07-password_reset_tokens.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
08-auth_logs.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
09-login_attempts.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
10-rate_limiting_config.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
11-notifications.sql feat: Add DDL tables for notifications system 2026-01-25 03:48:28 -06:00
12-user_push_tokens.sql feat: Add DDL tables for notifications system 2026-01-25 03:48:28 -06:00
99-deferred-constraints.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00