diff --git a/src/ohmyapi/builtin/auth/models.py b/src/ohmyapi/builtin/auth/models.py index 1438a93..8b68ab1 100644 --- a/src/ohmyapi/builtin/auth/models.py +++ b/src/ohmyapi/builtin/auth/models.py @@ -8,7 +8,7 @@ pwd_context = CryptContext(schemes=["argon2"], deprecated="auto") class Group(Model): id = field.IntField(pk=True) - name = field.CharField(max_length=42) + name = field.CharField(max_length=42, index=True) class User(Model):