mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Fix BaseUserDB typing by making email, is_active, is_superuser and is_verified non optional
This commit is contained in:
@@ -49,6 +49,10 @@ class BaseUserUpdate(BaseUser):
|
||||
|
||||
class BaseUserDB(BaseUser):
|
||||
id: UUID4
|
||||
email: EmailStr
|
||||
is_active: bool
|
||||
is_superuser: bool
|
||||
is_verified: bool
|
||||
hashed_password: str
|
||||
|
||||
class Config:
|
||||
|
||||
Reference in New Issue
Block a user