PIbd-42_SSPR/db/models/load_parameters_model.py

19 lines
515 B
Python

from sqlalchemy import Identity
from sqlalchemy.orm import Mapped, mapped_column
from db.models.base import Base
class LoadParameters(Base):
__tablename__ = 'load_parameters'
id: Mapped[int] = mapped_column(Identity(start=6, cycle=True),
primary_key=True)
load: Mapped[int]
primary_air_consumption: Mapped[float]
secondary_air_consumption: Mapped[float]
gas_inlet_consumption: Mapped[float]
def __repr__(self):
return f"<LoadParameters>"