from sqlalchemy import Column, BigInteger, String, Text, Numeric from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class MachineTemp(Base): __tablename__ = "machine_temp" id = Column(BigInteger, primary_key=True) machine_id = Column(BigInteger) estimate_packet = Column(Text) class PriceOptionFactor(Base): __tablename__ = "price_option_factor" option_id = Column(BigInteger, primary_key=True) factor = Column(Numeric(5,4))