o
    g                     @   sh   d dl mZmZmZmZmZmZmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZ G dd deZdS )	    )ColumnStringTextDateTimeJSONIndex
ForeignKey)BIGINT)Base)now)PushNotificationRequestc                   @   s   e Zd ZdZedddeddfZeeddddd	Zeedde	d
ddddZ
eedddZeedddZeeddZeeddZeeddZeeddZeededZdS )NotificationnotificationsZidx_user_readuser_idread_atZidx_typetypeT)unsigned)primary_keyautoincrementzusers.idCASCADE)ondeleteF)nullable2      )r   defaultN)__name__
__module____qualname____tablename__r   __table_args__r   r	   idr   r   r   r   titler   messager   datar   r   Z
expires_atr   
created_at r%   r%   /app/app/models/notification.pyr      s    
r   N)
sqlalchemyr   r   r   r   r   r   r   Zsqlalchemy.dialects.mysqlr	   app.db.baser
   app.core.timer   Zapp.schemas.notificationr   r   r%   r%   r%   r&   <module>   s   $