Skip to content

feat: add email_hash column for indexed user email lookup#130

Merged
v0l merged 2 commits into
masterfrom
feat/email-hash-lookup
Jun 15, 2026
Merged

feat: add email_hash column for indexed user email lookup#130
v0l merged 2 commits into
masterfrom
feat/email-hash-lookup

Conversation

@v0l

@v0l v0l commented Jun 15, 2026

Copy link
Copy Markdown
Contributor
  • Add email_hash BINARY(32) column with index to users table
  • Add email_hash() utility using SHA-256 of lowercased+trimmed email
  • update_user() automatically computes and stores email_hash
  • Add GET /api/admin/v1/users/by-email endpoint using indexed lookup
  • Add data migration to backfill email_hash for existing users at startup

v0l added 2 commits June 15, 2026 12:22
- Add email_hash BINARY(32) column with index to users table
- Add email_hash() utility using SHA-256 of lowercased+trimmed email
- update_user() automatically computes and stores email_hash
- Add GET /api/admin/v1/users/by-email endpoint using indexed lookup
- Add data migration to backfill email_hash for existing users at startup
@v0l v0l force-pushed the feat/email-hash-lookup branch from 63810cb to ee7b6ce Compare June 15, 2026 11:46
@v0l v0l merged commit 33e59b7 into master Jun 15, 2026
6 checks passed
@v0l v0l deleted the feat/email-hash-lookup branch June 15, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant