You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from .verification_status_enumimportVerificationStatusEnum
@@ -13,7 +13,7 @@ class User(Document):
13
13
14
14
type: UserTypeEnum=Field(..., description="Type of the user, human, api, etc. (enum)")
15
15
16
-
identifier: str=Field(..., description="Unique identifier for the user, could be an email, phone, username, etc.", unique=True)
16
+
identifier: Indexed(str, unique=True) =Field(..., description="Unique identifier for the user, could be an email, phone, username, etc.")
17
17
18
18
verification_status: VerificationStatusEnum=Field(default=VerificationStatusEnum.NOT_VERIFIED, description="Verification status of the user, verified, not_verified, blocked, deleted, not_required (enum)")
0 commit comments