first commit

This commit is contained in:
2026-03-07 21:31:38 +03:00
commit a879ba7b50
68 changed files with 2487 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
from sqlalchemy.ext.asyncio import AsyncSession
from app.notifications.repository import create_notification_log
from app.notifications.schemas import NotificationRequest
async def enqueue_notification(db: AsyncSession, payload: NotificationRequest) -> None:
await create_notification_log(
db,
user_id=payload.user_id,
event_type=payload.event_type,
payload=payload.payload.__repr__(),
)