
    ii                     >    d dl mZ d dlmZ d dlmZ  G d de      Zy)    )models)CarStockStatus)AbstractTimeStampModelc                   l   e Zd ZdZ ej
                  dddd      Z ej
                  dddd      Z ej
                  dd      Z ej
                  dd      Z	 ej                  d	      Z ej                  d
dd      Z ej                  d      Z ej
                  dd      Z ej
                  dd      Z ej
                  dd      Z ej
                  d ej&                         ej(                  d      Z ej,                  d      Z ej0                  dd      Z G d d      Zd Zy)CarStockzP
    Core inventory model.
    Represents one vehicle in DealerPulse stock.
        TzVehicle Identification Number)
max_lengthuniquedb_index	help_text2   zInternal stock number)r	   r   )r         zSelling price)
max_digitsdecimal_placesr   z2Mileage in kilometers or miles depending on market)r   )r	   blank   )r	   choicesdefaultr   )r   z&Soft delete flag for enterprise safety)r   r   c                       e Zd ZdZdgZdZ ej                  dg       ej                  dg       ej                  dg       ej                  dd	g      gZy
)CarStock.Meta	car_stockz-created_atz
Car Stocksvin)fieldsstock_numberstatusmakemodelN)	__name__
__module____qualname__db_tableorderingverbose_name_pluralr   Indexindexes     H/var/www/html/dp2/backend_v2.1/server/apps/car_stock/models/car_stock.pyMetar   ;   s_    !?*FLL(FLL 01FLL
+FLL 12	
r(   r*   c                 l    | j                    d| j                   d| j                   d| j                   S )Nz |  )r   yearr   r   )selfs    r)   __str__zCarStock.__str__F   s2    ##$C		{!DII;a

|LLr(   N)r   r    r!   __doc__r   	CharFieldr   r   r   r   PositiveIntegerFieldr-   DecimalFieldpricemileagecolor	fuel_typetransmissionr   r   STATUS_AVAILABLEr   	TextFielddescriptionBooleanField	is_activer*   r/   r'   r(   r)   r   r      s^   
 &

1	C $6##)	L 6rD9DFT:E&6&&5DF!E *f))FG F$7E   Bd;I#6##r>LV&&&(//	F #&"".K###:I
	
 	
Mr(   r   N)	django.dbr   apps.car_stock.constantsr   coresite.mixinr   r   r'   r(   r)   <module>rA      s     3 1@M% @Mr(   