21 lines
844 B
Python
21 lines
844 B
Python
import uuid
|
|
from datetime import datetime
|
|
from sqlalchemy import Column, String, DateTime, Integer, Float, ForeignKey
|
|
from sqlalchemy.dialects.postgresql import UUID
|
|
from sqlalchemy.orm import relationship
|
|
from app.database import Base
|
|
|
|
|
|
class MeetingParticipant(Base):
|
|
__tablename__ = "meeting_participants"
|
|
|
|
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4, index=True)
|
|
meeting_id = Column(UUID(as_uuid=True), ForeignKey("meetings.id"), nullable=False, index=True)
|
|
speaker_label = Column(String, nullable=False)
|
|
voice_profile_id = Column(UUID(as_uuid=True), nullable=True)
|
|
identified_name = Column(String, nullable=True)
|
|
confidence_score = Column(Float, nullable=True)
|
|
talk_time_seconds = Column(Integer, nullable=True)
|
|
|
|
meeting = relationship("Meeting", back_populates="participants")
|