Untitled

 avatar
unknown
plain_text
a year ago
405 B
6
Indexable
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)
    
Editor is loading...
Leave a Comment