19 lines
625 B
Python
19 lines
625 B
Python
from db.models.base import Base, int_pk_incr
|
|
from sqlalchemy import Sequence
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
|
|
class LoadParameters(Base):
|
|
__tablename__ = 'load_parameters'
|
|
|
|
id: Mapped[int] = mapped_column(primary_key=True,
|
|
autoincrement=True,
|
|
server_default=Sequence('load_parameters_id_seq', start=6).next_value())
|
|
load: Mapped[int]
|
|
primary_air_consumption: Mapped[float]
|
|
secondary_air_consumption: Mapped[float]
|
|
gas_inlet_consumption: Mapped[float]
|
|
|
|
def __repr__(self):
|
|
return f"<LoadParameters>"
|