feat: backend servis iskeletini ve yönetim uçlarını ekle

This commit is contained in:
2026-03-21 11:53:04 +03:00
parent df1924b772
commit 62add37d9d
29 changed files with 953 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
from sqlalchemy.orm import Session
from app.db import AuthorizedUserORM
def is_authorized(session: Session, telegram_user_id: int) -> bool:
record = session.get(AuthorizedUserORM, telegram_user_id)
return bool(record and record.is_active)