You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
387 B
16 lines
387 B
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) |
|
|
|
calls = relationship("Call", back_populates="operator") |
|
|
|
|
|
|