
    Nh                         d dl mZ d dlmZmZ d dlmZ d dlmZ  G d de          Z	 G d de          Z
 G d	 d
e          ZdS )    )models)	BaseModelProduct)Decimal)Userc                   n    e Zd Z ej        d          Z ej                    Z G d d          Zd Z	dS )Notification   )
max_lengthc                       e Zd ZdZdS )Notification.MetanotificationN__name__
__module____qualname__db_table     -/var/www/html/e360mart/notification/models.pyMetar              !r   r   c                     | j         S N)titleselfs    r   __str__zNotification.__str__   s
    zr   N)
r   r   r   r   	CharFieldr   	TextFielddescriptionr   r   r   r   r   r	   r	      sp        F,,,E"&"$$K" " " " " " " "    r   r	   c                       e Zd ZddgZ ej        dd          Z ej        ded          Z ej        dd	          Z	 ej
        d
          Z G d d          Zd ZdS )Device)androidAndroid)iosiOSr
   T)r   unique   r$   )r   choicesdefault)nullblankr+   c                       e Zd ZdZdS )Device.Metabuyer_deviceNr   r   r   r   r   r0   #   r   r   r   c                     | j         S r   )	device_idr   s    r   r   zDevice.__str__&   s
    ~r   N)r   r   r   DEVICE_CHOICESr   r   r3   platformDateTimeFieldlast_opened_atBooleanFieldstatusr   r   r   r   r   r#   r#      s         	N
 ! C===Iv  H
 *V)t4@@@N V ...F" " " " " " " "    r   r#   c                   R   e Zd Z ej        eej        dd          Z ej        eddej                  Z	 ej        e
ddej                  Z ej        ddd          Z ej        dd          Z ej        d          Z ej        d	          Z G d
 d          Zd ZdS )NotificationHistoryT)	on_deleter-   r,   )r,   r-   r<   r
   )r   r-   r,   )r-   r,   Fr.   )auto_now_addc                       e Zd ZdZdS )NotificationHistory.Metanotification_historyNr   r   r   r   r   r?   6   s        )r   r   c                 `    | j         p| j        r| j        j         nd}| d| j        p| j         S )NUntitledz - )r   r   vendordevice)r   	title_strs     r   r   zNotificationHistory.__str__9   s?    J`d>O#_4#4#:#:U_	<< :t{<<<r   N)r   r   r   r   
ForeignKeyr	   CASCADEr   r#   rD   r   rC   r   r   r    messager8   is_readr6   sent_atr   r   r   r   r   r;   r;   )   s        $6$\V^SW^bcccLVvDWWWFVt$dfnUUUFF4dCCCEfT555G!f!%000G #f"555G* * * * * * * *= = = = =r   r;   N)	django.dbr   product.modelsr   r   decimalr   login_signup.modelsr   r	   r#   r;   r   r   r   <module>rO      s          - - - - - - - -       $ $ $ $ $ $    9       Y   .= = = = =) = = = = =r   