o
    [=g                     @   sF   d dl mZ G dd dejZG dd dejZG dd dejZdS )	    )modelsc                   @   s.   e Zd ZejddZdd ZG dd dZdS )Notificationtype2   )
max_lengthc                 C      | j S Ntypeself r   7/var/www/html/notificationserver/notification/models.py__str__	      zNotificationtype.__str__c                   @      e Zd ZdZdS )zNotificationtype.MetanotificationtypeN__name__
__module____qualname__db_tabler   r   r   r   Meta       r   N)r   r   r   r   	CharFieldr	   r   r   r   r   r   r   r      s    r   c                   @   sV   e Zd ZejdejdZe Zej	dddZ
ejdddZdd ZG dd dZd	S )
notificationsr   	on_deleteT)nullblankc                 C   r   r   r   r
   r   r   r   r      r   znotifications.__str__c                   @   r   )znotifications.Metar   Nr   r   r   r   r   r      r   r   N)r   r   r   r   
ForeignKeyCASCADEnotification_typeBigIntegerField	sender_idDateTimeFieldread_at	JSONFielddatar   r   r   r   r   r   r      s    r   c                   @   s:   e Zd ZejeejdZe Z	dd Z
G dd dZdS )NotificationReceiverr   c                 C   s   d| j  S )NzNotification to user )user_idr
   r   r   r   r   #   s   zNotificationReceiver.__str__c                   @   r   )zNotificationReceiver.MetanotificationreceiverNr   r   r   r   r   r   &   r   r   N)r   r   r   r   r   r   r    notificationr"   r)   r   r   r   r   r   r   r(      s
    r(   N)	django.dbr   Modelr   r   r(   r   r   r   r   <module>   s    