
    Ii                     F    d dl m Z  d dlmZ  G d dej                        Zy)    )datetime)dbc                   j   e Zd ZdZdZ ej                  ej                  d      Z ej                  ej                   ej                  dd      d	      Z
 ej                   ej                  d
      d	      Z ej                   ej                  d      d	      Z ej                   ej                  d      d	      Z ej                  ej                  d	      Z ej                  ej                   ej$                        Z ej(                  d ej*                  ddd            Zd Zy)ChatFilez1Modelo para armazenar arquivos enviados nos chats
chat_filesT)primary_keyzchats.idCASCADE)ondeleteF)nullable   i   d   )defaultChatfileszall, delete-orphan)lazycascade)backrefc                 "    d| j                    dS )Nz
<ChatFile >)filename)selfs    3/srv/www/ollama/chat-ollama/src/models/chat_file.py__repr__zChatFile.__repr__   s    DMM?!,,    N)__name__
__module____qualname____doc____tablename__r   ColumnIntegerid
ForeignKeychat_idStringr   	file_path	file_type	file_sizeDateTimer   utcnow
created_atrelationshipr   chatr    r   r   r   r      s    ; M	2::4	0Bbii

MBMM*y$Q\abGryy3%8H		)"))C.59I		)"))C.59I		"**u5I2;;@J2??6:2::gDRf+ghD-r   r   N)r   src.extensionsr   Modelr   r.   r   r   <module>r1      s     -rxx -r   