+
    ic                     *   R t ^ RIHtHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHtHt ]! RR.R	7      t]P!                  R
]],          R7      ]! ]	4      3R R ll4       t]P!                  R4      ]! ]	4      3R R ll4       t]P'                  R
]R7      ]! ]	4      3R R ll4       t]P+                  R4      ]! ]	4      3R R ll4       t]P+                  R4      ]! ]	4      3R R ll4       t]P1                  R4      ]! ]	4      3R R ll4       tR# )z/
Routes FastAPI pour les notifications MAESTRO
)	APIRouterDependsSession)List)get_db)Notification)NotificationCreateNotificationOutz/api/notificationsnotifications)prefixtags/)response_modelc                $    V ^8  d   QhR\         /#    dbr   )formats   "jC:\Users\petid\OneDrive\Desktop\Maestro\MAESTRO CLAUDE\MAESTRO\maestro-backend\app\routes\notifications.py__annotate__r      s      '     c                     V P                  \        4      P                  \        P                  P	                  4       4      P                  ^24      P                  4       # )2   )queryr   order_bydate_creationdesclimitallr   s   &r   get_notificationsr!      s;    88L!h|116689eBir   z/non-lues/countc                $    V ^8  d   QhR\         /# r   r   )r   s   "r   r   r      s      w r   c                     V P                  \        4      P                  \        P                  R 8H  4      P	                  4       pRV/# )Fcount)r   r   filterlur$   )r   r$   s   & r   count_non_luesr'      s:    HH\"vloo./uw 
 Ur   c                0    V ^8  d   QhR\         R\        /# )r   notifr   )r	   r   )r   s   "r   r   r      s      1 w r   c                     \        R/ V P                  4       B pVP                  V4       VP                  4        VP	                  V4       V# )N )r   dictaddcommitrefresh)r)   r   db_notifs   && r   create_notificationr1      s;    +ejjl+HFF8IIKJJxOr   z/{notif_id}/lirec                0    V ^8  d   QhR\         R\        /# r   notif_idr   intr   )r   s   "r   r   r   (   s      # 7 r   c                     VP                  \        4      P                  \        P                  V 8H  4      P	                  4       pV'       d   R Vn        VP                  4        RR /# )Tok)r   r   r%   idfirstr&   r.   r4   r   r)   s   && r   marquer_luer<   '   sJ    HH\")),//X*EFLLNE
		$<r   z
/lire-toutc                $    V ^8  d   QhR\         /# r   r   )r   s   "r   r   r   1   s       r   c                     V P                  \        4      P                  \        P                  R 8H  4      P	                  RR/4       V P                  4        RR/# )Fr&   Tr8   )r   r   r%   r&   updater.   r    s   &r   marquer_tout_lur@   0   sC    HH\!!,//U":;vtTlIIK$<r   z/{notif_id}c                0    V ^8  d   QhR\         R\        /# r3   r5   )r   s   "r   r   r   9   s      S g r   c                     VP                  \        4      P                  \        P                  V 8H  4      P	                  4       pV'       d"   VP                  V4       VP                  4        R R/# )r8   T)r   r   r%   r9   r:   deleter.   r;   s   && r   supprimer_notificationrD   8   sO    HH\")),//X*EFLLNE
		%
		$<r   N)__doc__fastapir   r   sqlalchemy.ormr   typingr   app.databaser   app.models.notificationr   app.schemas.notificationr	   r
   routergetr!   r'   postr1   putr<   r@   rC   rD   r+   r   r   <module>rP      s   ' "   0 H	.o5F	G C_ 56$+FO  7 !(   S1AH  2 -4V_    L")&/   }8?  r   