11 lines
464 B
Python
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) |