Untitled

mail@pastecode.io avatar
unknown
plain_text
3 months ago
496 B
2
Indexable
Never
import enum
from sqlalchemy import (
    Integer,
    Column,
    ForeignKey,
    String,
    Float,
    Enum,
    Boolean,
    Index
)
from ..db_setup import Base

class Variant(Base):
    __tablename__ = 'iot-prodigi-part-variant'
    __table_args__ = {'extend_existing': True}
    id = Column(Integer, primary_key = True)
    variant_id = Column(Integer)
    name = Column(String)
    shop_id = Column(Integer, index=True)
    idx_name = Index('Variant_idx_name', name)

Leave a Comment