
    =Rh                     F    d dl mZ d dlmZ  G d dej                        Zy)    )models)Propertyc                      e Zd Z ej                  eej                  dd      Z ej                         Z	 ej                  ddd      Z ej                  dd	
      Z ej                  ddddd      Z ej                  ddddd      Z ej                  ddddd      Z ej                  dej"                  dddd      Z ej&                  d      Z ej*                  d      Z ej*                  d      Z G d d      Zd Zy)RateratesT)	on_deleterelated_namedb_index
      z Default/base price for the night)
max_digitsdecimal_places	help_text   zMinimum nights required)defaultr   zPrice on Booking.com)r   r   nullblankr   zPrice on AirbnbzPrice on Expediazbookings.Bookingz1Reference to the booking occupying this rate slot)r   r   r   r	   r   F)r   )auto_now_add)auto_nowc                       e Zd ZdZdZddgZy)	Rate.Metaproperty_rates))propertydateproperty_idr   N)__name__
__module____qualname__db_tableunique_togetherordering     /backend/rates/models.pyMetar   =   s    #1!6*r#   r%   c                 f    | j                   j                   d| j                   d| j                   S )Nz @ z: )r   namer   
base_price)selfs    r$   __str__zRate.__str__B   s-    --$$%S2doo5FGGr#   N)r   r   r   r   
ForeignKeyr   CASCADEr   	DateFieldr   DecimalFieldr(   PositiveIntegerField
min_nightsbookingairbnbexperiaSET_NULLbooking_refBooleanField	is_bookedDateTimeField
created_at
updated_atr%   r*   r"   r#   r$   r   r      sF    v  ..	H 6D$$$4J
 -,,+J "f!!(G !V  #F "f!!$G $&##//EK $##E2I%%%48J%%%t4J+ +
Hr#   r   N)	django.dbr   properties.modelsr   Modelr   r"   r#   r$   <module>r>      s     &>H6<< >Hr#   