8 lines
298 B
Python
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))
|