
    i{
                         d dl m Z  d dlmZmZmZmZmZmZmZm	Z	 d dl
mZmZmZ d dlmZ  G d de      Z G d de      Zy	)
    )datetime)JSONDateTime
ForeignKeyIntegerStringTextUniqueConstraintfunc)Mappedmapped_columnrelationship)Basec                   n   e Zd ZU dZ edd      Zee   ed<    e e	d      ddd      Z
ee   ed<    eedd	
      Zee   ed<    eedd
      Zee   ed<    eedd
      Zee   ed<    eedd
      Zee   ed<    eedd
      Zee   ed<    eedd
      Zee   ed<    eedd
      Zee   ed<    eedd
      Zee   ed<    e ed       ej0                         d      Zee   ed<    e ed       ej0                          ej0                         d      Zee   ed<    ed      Zy)VenueBookingSettingsvenue_booking_settingsTprimary_keyindexid	venues.idF)nullableuniquer   venue_idx   r   defaultturn_duration_minutes whatsapp_assistant_promptwhatsapp_business_account_idwhatsapp_business_idwhatsapp_phone_number_idwhatsapp_access_tokenwhatsapp_display_phone_numberwhatsapp_verified_nametimezoneserver_defaultr   
created_atr*   onupdater   
updated_atVenueN)__name__
__module____qualname____tablename__r   r   r   int__annotations__r   r   r   r   r	   r    strr!   r"   r#   r$   r%   r&   r   r   nowr+   r   r.   r   venue     ;/var/www/html/PRENOTAZIONI_IA/backend/app/models/booking.pyr   r   	   sr   ,M#DABsA)*[*AEZ^fjkHfSkk)6wX[)\6#;\-:4%Y[-\vc{\0=dU\^0_ &+_(5dUTV(W&+W,9$XZ,[fSk[)6teUW)X6#;X1>te]_1`!6#;`*7uVX*YF3KY#041HYaY]YaYaYcns#tJx t#0$txxz	$Jx   !Er:   r   c                   &   e Zd ZU dZ eddd      fZ edd      Zee	   e
d<    e ed	      d
d      Zee   e
d<    e ed      d
d      Zee	   e
d<    e ed	      d
d      Zee   e
d<    eed
e      Zee   e
d<    e ed      dd      Zee	dz     e
d<    e ed       ej.                         d
      Zee   e
d<    e ed       ej.                          ej.                         d
      Zee   e
d<    ed      Z ed      Zy)WhatsAppBookingSessionwhatsapp_booking_sessionscontact_phoner   3uq_whatsapp_booking_sessions_contact_phone_venue_id)nameTr   r   (   F)r   r   r   
collectingr   statusdraftzreservations.idNreservation_idr'   r)   r+   r,   r.   r/   Reservation)r0   r1   r2   r3   r
   __table_args__r   r   r   r4   r5   r   r?   r6   r   r   rD   r   dictrE   rF   r   r   r7   r+   r   r.   r   r8   reservationr9   r:   r;   r=   r=   !   s9   /M*;pqN $DABsA!.vbzEQU!VM6#;V)*[*AEY]^HfSk^'r
ULYFF3KY'udKE6$<K)6zBS7T_cko)pNF3:&p#041HYaY]YaYaYcns#tJx t#0$txxz	$Jx   !E}-Kr:   r=   N)r   
sqlalchemyr   r   r   r   r   r	   r
   r   sqlalchemy.ormr   r   r   app.core.databaser   r   r=   r9   r:   r;   <module>rN      s2     ` ` ` > > ""4 "0.T .r:   