🐛 email_hash is not optional
This commit is contained in:
parent
812e89ede9
commit
6b87bfeefb
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class Group(Model):
|
|||
class User(Model):
|
||||
id: UUID = field.data.UUIDField(pk=True)
|
||||
username: str = field.CharField(max_length=150, unique=True)
|
||||
email_hash: Optional[str] = field.CharField(max_length=255, unique=True, index=True)
|
||||
email_hash: str = field.CharField(max_length=255, unique=True, index=True)
|
||||
password_hash: str = field.CharField(max_length=128)
|
||||
is_admin: bool = field.BooleanField(default=False)
|
||||
is_staff: bool = field.BooleanField(default=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue