From 898ab6de9947557a7f9d4f450d7f4f9f3ce5eb4c Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Sat, 27 Sep 2025 04:58:51 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8FAdd=20index=20to=20Group.name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ohmyapi/builtin/auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):