♻️Add index to Group.name
This commit is contained in:
parent
83ccdb8f9f
commit
898ab6de99
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue