
    ei4                         d dl mZ d dlmZ  G d dej                        Z G d dej                        Z G d dej                        Zy	)
    )models)	Structurec                      e Zd Z G d dej                        Z ej                  eej                  dd      Z	 ej                  dd      Z ej                  d	ddd
      Z ej                  ddd      Z ej                  ddddd      Z ej"                  d      Z ej"                  d      Z ej"                  d      Z ej"                  d      Z ej"                  d      Z ej.                  ddd      Z ej"                  ej2                  ej4                  d      Z ej8                  d      Z ej8                  d      Z G d d      Zd Z y)PropertyTypec                       e Zd ZdZdZy)PropertyType.Status)   Unmapped)   MappedN__name__
__module____qualname__UNMAPPEDMAPPED     /backend/properties/models.pyStatusr      s     r   r   property_typesT	on_deleterelated_namedb_index   zProperty Type Name
max_length	help_textd   zOptional internal property IDr   blanknullr   i  )r   r"   r#      r   zSize in square meters)
max_digitsdecimal_placesr"   r#   r   r   defaultComma-separated amenities listr"   r#   r   z+Use Status Enum: 1=Unmapped, 2=Mapped, etc.choicesr(   r   auto_now_addauto_nowc                       e Zd ZdZy)PropertyType.Metar   Nr   r   r   db_tabler   r   r   Metar2   3   s    #r   r5   c                     | j                   S Nnameselfs    r   __str__zPropertyType.__str__6       yyr   N)!r   r   r   r   IntegerChoicesr   
ForeignKeyr   CASCADE	structure	CharFieldr9   internal_property_type_idURLField	image_urlDecimalFieldproperty_size_sqmIntegerField
max_guestsnum_bedsnum_sofa_bedsnum_bedroomsnum_bathrooms	TextField	amenitiesr,   r   statusDateTimeField
created_at
updated_atr5   r<   r   r   r   r   r      st   && 
 "!!..%	I 6s6JKD 0 0 0d9X!
  3dFI+++) %$$Q/J"v""1-H'F''2M&6&&q1L'F''2M   )II !V  ?F &%%48J%%%t4J$ $r   r   c                       e Zd Z ej                  eej                  d      Z ej                  d      Z	 ej                  d      Z ej                  d      Z ej                  d	      Z G d
 d      Zd Zy)PropertyTypeBedbeds)r   r   r    )r   r	   r'   Tr-   r/   c                       e Zd ZdZy)PropertyTypeBed.Metaproperty_types_bedsNr3   r   r   r   r5   rX   D   s    )r   r5   c                 8    | j                    d| j                   S )Nz x )bed_typequantityr:   s    r   r<   zPropertyTypeBed.__str__G   s    --DMM?33r   N)r   r   r   r   r?   r   r@   property_typerB   r[   PositiveIntegerFieldr\   rQ   rR   rS   r5   r<   r   r   r   rU   rU   ;   sx    %F%%VM  v3/H*v**15H%%%48J%%%t4J* *4r   rU   c                      e Zd Z G d dej                        Z G d dej                        Z ej                  e	ej                  dd      Z ej                  eej                  dd      Z ej                  dd	
      Z ej                  dddd      Z ej"                  ddd      Z ej&                  ddd      Z ej"                  ej*                  ej,                  d      Z ej                  dej*                  ej0                  d      Z ej4                  d      Z ej4                  d      Z G d d      Zd Zy)Propertyc                       e Zd ZdZdZy)Property.PropertyStatus)r	   Unavailable)r   	AvailableNr   r   r   r   PropertyStatusrb   L   s    #r   re   c                       e Zd ZdZdZdZdZy)Property.Availability)	availablerd   )unavailablerc   )under_maintenancezUnder Maintenance)room_cleaningzRoom CleaningN)r   r   r   	AVAILABLEUNAVAILABLEUNDER_MAINTENANCEROOM_CLEANINGr   r   r   Availabilityrg   P   s    ,	2D8r   rp   
propertiesTr   r   zProperty Namer   r    zOptional Property IDr!   zFloor Numberr*   r)   z1Use Status Enum: 1=Unavailable, 2=Available, etc.r+       zIOperational room availability for sellability and ISTAT calendar metrics.)r   r,   r(   r   r-   r/   c                       e Zd ZdZy)Property.Metarq   Nr3   r   r   r   r5   rt   |   s    r   r5   c                     | j                   S r7   r8   r:   s    r   r<   zProperty.__str__   r=   r   N)r   r   r   r   r>   re   TextChoicesrp   r?   r   r@   rA   r   r]   rB   r9   internal_property_idrH   floor_numberrN   rO   r,   r   rP   rl   availabilityrQ   rR   rS   r5   r<   r   r   r   r`   r`   K   s]    ..  9v)) 9 "!!V^^,QUI &F%%\TXM
 6soFD+6++d9O '6&&TWL !  )II !V  &&''EF
 $6##$$&&L &%%48J%%%t4J   r   r`   N)	django.dbr   structures.modelsr   Modelr   rU   r`   r   r   r   <module>r}      s<     '26<< 2l4fll 4 5v|| 5r   