17 lines
485 B
Python
17 lines
485 B
Python
from sqlalchemy import Column, UUID, String, Integer
|
|
from sqlalchemy.orm import relationship
|
|
from apiApp.database import Base
|
|
import uuid
|
|
|
|
|
|
class Operator(Base):
|
|
__tablename__ = "operator"
|
|
|
|
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
|
fio = Column(String(100))
|
|
num = Column(Integer)
|
|
|
|
# TODO: Добавить relationship когда будет создана модель Call
|
|
# calls = relationship("Call", back_populates="operator")
|
|
|