Initial commit
This commit is contained in:
4
services/ingest-service/app/models/__init__.py
Normal file
4
services/ingest-service/app/models/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from app.models.call_event import CallEvent
|
||||
|
||||
__all__ = ["CallEvent"]
|
||||
|
||||
20
services/ingest-service/app/models/call_event.py
Normal file
20
services/ingest-service/app/models/call_event.py
Normal 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)
|
||||
Reference in New Issue
Block a user