♻️Add index to Group.name

This commit is contained in:
Brian Wiborg 2025-09-27 04:58:51 +02:00
parent 83ccdb8f9f
commit 898ab6de99
No known key found for this signature in database

View file

@ -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):