Files
plantillas-proyectos/backend/api/v1/modules/a76/transport_modes/models.py

11 lines
464 B
Python

from sqlalchemy import Column, String, ForeignKey
from core.database import Base
class TransportMode(Base):
__tablename__ = "transport_mode"
__table_args__ = {"schema": "a76"}
mode_key = Column(String(3), primary_key=True, nullable=False)
mode_description = Column(String(30), nullable=True)
company_id = Column(String, ForeignKey("a76.company.id"), nullable=False)
tenant_id = Column(String, ForeignKey("a76.tenants.id"), nullable=False)