
    $1i                         d Z ddlmZ ddlmZ ddl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y)z0
Note schema definitions for common operations.
    )datetime)Optional)Field
ConfigDict)
BaseSchema)UserResponseSchemac                   0    e Zd ZU dZ edd      Zeed<   y)NoteBasez$Base note schema with common fields..Note content/descriptiondescriptionr   N)__name__
__module____qualname____doc__r   r   str__annotations__     `/var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/src/apps/notes/schemas/note_common.pyr
   r
      s    .S.HIKIr   r
   c                       e Zd ZU dZ ed      Z edd      Zee	d<    ed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	d<    edd      Zee	d<   y
)NoteResponseSchemazNote response schema.Tfrom_attributes.zNote's unique identifierr   idzWhen the note was created
created_atNzWhen the note was last updated
updated_atzWhen the note was soft deleted
deleted_atz#ID of the user who created the notecreated_by_idzUser who created the note
created_by)r   r   r   r   r   model_configr   r   intr   r   r   r   r   r   r   r    r   r   r   r   r   r      s    d3LC%?@B@ 2MNJN%*4=]%^J"^%*4=]%^J"^s0UVM3V%*3<W%XJ"Xr   r   c                       e Zd ZdZy)NoteCreateSchemazSchema for creating a new note.N)r   r   r   r   r   r   r   r$   r$      s    )r   r$   c                   6    e Zd ZU dZ edd      Zee   ed<   y)NoteUpdateSchemaz%Schema for updating note information.Nr   r   r   )	r   r   r   r   r   r   r   r   r   r   r   r   r&   r&   %   s    /!&t9S!TK#Tr   r&   c                       e Zd ZU dZ ed      Z edd      Zee	   e
d<    edd      Zee
d	<    edd
      Zee
d<    edd      Zee
d<   y)NoteListResponseSchemazSchema for notes list response.Tr   .zList of notesr   datazSuccess statussuccesszResponse messagemessage   zHTTP status codestatus_codeN)r   r   r   r   r   r!   r   r)   listr   r   r*   boolr+   r   r-   r"   r   r   r   r(   r(   +   s\    )d3L%*3O%LD$!
"L$,<=GT=*<=GS=S.@AKAr   r(   N)r   r   typingr   pydanticr   r   src.apps.base.schemas.commonr   "src.apps.users.schemas.user_commonr   r
   r   r$   r&   r(   r   r   r   <module>r4      s_      & 3 AJz J
Y 
Y	x 	Ux UBZ Br   