Describe the bug
If you want to add a field that should be globally unique (within a tenent) such as a username, it is currently not possible to specify that
To Reproduce
Steps to reproduce the behavior:
- Go to 'User fields'
- Click on 'Create User Field'
- No way to add unique constraint on field
Expected behavior
A checkbox in this form that adds a UNIQUE constraint on the field should be available, at least on some field types such as string, phone number, maybe address, etc.
Configuration
- Cloud or self-hosted: self-hosted (Railway)
- If self-hosted, Fief version: 0.28.6
Additional context
I want to protect the privacy of my user's emails by only allowing account search via username