Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
405 B
4
Indexable
Never
from sqlalchemy import (
    Integer,
    Column,
    String,
    Index
)
from ..db_setup import Base

class EngineModel(Base):
    __tablename__ = 'iot-prodigi-engine-model'
    __table_args__ = {'extend_existing': True}
    id = Column(Integer, primary_key = True)
    name = Column(String)
    shop_id = Column(Integer, index=True)
    idx_model_name = Index('idx_model_name', name)
    
Leave a Comment