
    hq                        d dl mZmZmZ d dlmZ d dlmZ  G d de      Z G d de      Z G d d	e      Z	 G d
 de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Zy)    )	BaseModelEmailStrField)Optional)datetimec                   "    e Zd ZU eed<   eed<   y)UserBaseemailnameN__name__
__module____qualname__r   __annotations__str     :/var/www/html/phonemate/phone_mate_backend/schemas/auth.pyr	   r	      s    O
Ir   r	   c                   "    e Zd ZU eed<   eed<   y)LoginRequestModelusernamepasswordNr   r   r   r   r   r      s    Mr   r   c                       e Zd ZU eed<   y)
UserCreater   Nr   r   r   r   r   r   r   r   r   r      s    Mr   r   c                       e Zd ZU dZee   ed<   eed<   eed<   ee   ed<   dZ	ee   ed<   dZ
ee   ed<   dZee   ed<   dZee   ed	<   dZee   ed
<    edd      Zee   ed<    G d d      Zy)UserReadNid
created_at
updated_atr   default_companyis_email_verifiedstepemail_verified_at
deleted_at   "1: active, 2: inactive, 3: deleted)defaultdescriptionstatusc                       e Zd ZdZy)UserRead.ConfigTNr   r   r   from_attributesr   r   r   Configr,   "       r   r/   )r   r   r   r   r   intr   r   r   r!   r"   r#   r$   r%   r   r*   r/   r   r   r   r   r      s    Bsm%)OXc])'+x}+D(3-,0x)0%)J")!CFHSM  r   r   c                       e Zd ZU dZee   ed<   dZee   ed<   dZ	ee   ed<    e
dd      Zee   ed<   dZee   ed<   y)	
UserUpdateNr
   r   r   r'   )r)   r*   r%   )r   r   r   r
   r   r   r   r   r   r   r   r*   r1   r%   r   r   r   r   r3   r3   &   sY     $E8H$D(3-"Hhsm"!>FHSM  &*J")r   r3   c                   "    e Zd ZU eed<   eed<   y)Tokenaccess_token
token_typeNr   r   r   r   r5   r5   0   s    Or   r5   c                       e Zd ZU eed<   y)RecoverPasswordRequestr
   N)r   r   r   r   r   r   r   r   r9   r9   5   s    Or   r9   c                   "    e Zd ZU eed<   eed<   y)VerifyOTPRequestr
   otpNr   r   r   r   r;   r;   9   s    O	Hr   r;   c                   ,    e Zd ZU eed<   eed<   eed<   y)UpdatePasswordRequestr
   r<   new_passwordNr   r   r   r   r>   r>   >   s    O	Hr   r>   c                       e Zd ZU dZee   ed<   eed<   eed<   eed<   e	ed<   dZ
ee	   ed<   dZee	   ed<    G d	 d
      Zy)OTPLogSchemaNr   r
   r<   typer   used_at
expired_atc                       e Zd ZdZy)OTPLogSchema.ConfigTNr-   r   r   r   r/   rF   M   r0   r   r/   )r   r   r   r   r   r1   r   r   r   r   rC   rD   r/   r   r   r   rA   rA   D   sM    BO	H
I"&GXh&%)J") r   rA   N)pydanticr   r   r   typingr   r   r	   r   r   r   r3   r5   r9   r;   r>   rA   r   r   r   <module>rI      s    / /  y 
	 
 x $* *I 
Y y 
I 
9 
r   