Initial commit

This commit is contained in:
2025-11-19 22:54:33 +07:00
commit 8f5b984598
18 changed files with 761 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
from app.models.call_event import CallEvent
__all__ = ["CallEvent"]

View File

@@ -0,0 +1,20 @@
from sqlalchemy import Column, BigInteger, Integer, UUID, String
from app.core.database import Base
class CallEvent(Base):
__tablename__ = "call_events"
id = Column(UUID, primary_key=True, index=True)
call_session_id = Column(BigInteger, nullable=False, index=True)
direction = Column(String, nullable=False)
notification_mnemonic = Column(String, nullable=False)
last_answered_employee_full_name = Column(String, nullable=True)
employee_id = Column(Integer, nullable=True)
finish_time = Column(Integer, nullable=False)
total_time_duration = Column(Integer, nullable=False)
wait_time_duration = Column(Integer, nullable=False)
total_wait_time_duration = Column(Integer, nullable=False)
talk_time_duration = Column(Integer, nullable=False)
clean_talk_time_duration = Column(Integer, nullable=False)
full_record_file_link = Column(String, nullable=False)
tcm_topcrm_notification_name = Column(String, nullable=False)