2024-10-15 16:34:09 +04:00
|
|
|
from db.models.base import Base, int_pk_incr
|
2024-10-18 16:42:39 +04:00
|
|
|
from sqlalchemy import Sequence
|
|
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
2024-10-15 16:34:09 +04:00
|
|
|
|
2024-10-14 16:57:57 +04:00
|
|
|
|
|
|
|
class LoadParameters(Base):
|
2024-10-14 22:02:08 +04:00
|
|
|
__tablename__ = 'load_parameters'
|
2024-10-14 16:57:57 +04:00
|
|
|
|
2024-10-18 16:42:39 +04:00
|
|
|
id: Mapped[int] = mapped_column(primary_key=True,
|
|
|
|
autoincrement=True,
|
|
|
|
server_default=Sequence('load_parameters_id_seq', start=6).next_value())
|
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):
|
2024-10-15 16:34:09 +04:00
|
|
|
return f"<LoadParameters>"
|