
    {i                         d dl mZ d dlmZmZ d dl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y)    )Optional)Field
ConfigDict)	FileTypes)datetime)
BaseSchemac                       e Zd ZU  ed      Z edd      Zee   e	d<    edd      Z
ee   e	d<    edd	      Zee   e	d
<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<   y)FileBaseTfrom_attributesNOriginal Name of filedefaultdescriptionoriginal_nameGenerated Name of filenamezUpload path of filepathType of file	file_typeMIME type of filemimezCDN location of filecdn_id)__name__
__module____qualname__r   model_configr   r   r   str__annotations__r   r   r   r   r   r        `/var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/src/apps/files/schemas/file_common.pyr
   r
      s    d3L#(CZ#[M8C=[:RSD(3-S:OPD(3-P%*4^%TIx	"T:MND(3-N!$<RSFHSMSr!   r
   c                       e Zd ZU  ed      Z edd      Zee   e	d<    edd      Z
ee   e	d<    edd	      Zee   e	d
<    edd      Zee   e	d<    edd      Zee   e	d<    edd      Zee   e	d<   y)
FileSchemaTr   NId of Line Item resourcer   id/Created date and time of file as unix timestamp
created_atServer URL of the uploaded filefull_urlSize of file in mbfilesizefilezGeneration type of filegeneration_typezContent of filebyte_content)r   r   r   r   r   r   r&   r   intr   r(   r   r*   r   r,   r.   r/   bytesr    r!   r"   r$   r$      s    d3Ld8RSBS%*E&J"  $D>_`Hhsm`#D>RSHhsmS%*$=&OXc]  %*$DU$VL(5/Vr!   r$   c                   0   e Zd ZU  ed      Z ed      Zeed<    edd      Z	e
e   ed	<    edd
      Ze
e   ed<    edd      Ze
e   ed<    edd      Ze
e   ed<    edd      Ze
e   ed<    edd      Ze
e   ed<    ed      Zeed<   y)FileResponseSchemaTr   r%   )r   r&   Nr   r   r   r   r   r   r   r   r   r)   r*   r+   r,   r'   r(   )r   r   r   r   r   r   r&   r0   r   r   r   r   r   r   r   r   r*   r,   r(   r   r    r!   r"   r3   r3   #   s    d3L :;B;#(CZ#[M8C=[:RSD(3-S%*4^%TIx	"T:MND(3-N#D>_`Hhsm`#D>RSHhsmS EJ r!   r3   N)typingr   pydanticr   r   src.core.utils.enumsr   r   src.apps.base.schemas.commonr   r
   r$   r3   r    r!   r"   <module>r8      s<     & *  3Tz TW W  r!   