Files
Messenger/app/notifications/repository.py
2026-03-07 21:31:38 +03:00

8 lines
298 B
Python

from sqlalchemy.ext.asyncio import AsyncSession
from app.notifications.models import NotificationLog
async def create_notification_log(db: AsyncSession, *, user_id: int, event_type: str, payload: str) -> None:
db.add(NotificationLog(user_id=user_id, event_type=event_type, payload=payload))