Доработка вебхука

This commit is contained in:
2025-11-20 23:16:09 +07:00
parent 8f5b984598
commit 1538f72c8f
5 changed files with 69 additions and 125 deletions

View File

@@ -1,10 +1,12 @@
from sqlalchemy import Column, BigInteger, Integer, UUID, String
from app.core.database import Base
from sqlalchemy import Column, BigInteger, Integer, String, DateTime
from sqlalchemy.dialects.postgresql import UUID as PG_UUID
import uuid
from app.infrastructure.database import Base
class CallEvent(Base):
__tablename__ = "call_events"
id = Column(UUID, primary_key=True, index=True)
id = Column(PG_UUID(as_uuid=True), primary_key=True, default=uuid.uuid4, index=True)
call_session_id = Column(BigInteger, nullable=False, index=True)
direction = Column(String, nullable=False)
notification_mnemonic = Column(String, nullable=False)