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

19 lines
518 B
Python
Raw Permalink Normal View History

from sqlalchemy import Identity
from sqlalchemy.orm import Mapped, mapped_column
from db.models.base import Base
2024-10-14 16:57:57 +04:00
class LoadParameters(Base):
__tablename__ = 'load_parameters'
2024-10-14 16:57:57 +04:00
id: Mapped[int] = mapped_column(Identity(start=1000, cycle=True),
primary_key=True)
2024-10-14 16:57:57 +04:00
load: Mapped[int]
primary_air_consumption: Mapped[float]
secondary_air_consumption: Mapped[float]
gas_inlet_consumption: Mapped[float]
def __repr__(self):
return f"<LoadParameters>"