Доработка вебхука
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user