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 19:49:54 +04:00
|
|
|
|
|
|
|
class ChExperimentDBExperimentData(Base):
|
2024-10-15 16:34:09 +04:00
|
|
|
__tablename__ = 'ch_experimentdb_experiment_data'
|
2024-10-14 19:49:54 +04:00
|
|
|
|
2024-10-18 16:42:39 +04:00
|
|
|
id: Mapped[int] = mapped_column(primary_key=True,
|
|
|
|
autoincrement=True,
|
|
|
|
server_default=Sequence('ch_experimentdb_experiment_data_id_seq', start=11).next_value())
|
2024-10-15 16:34:09 +04:00
|
|
|
volume: Mapped[float]
|
|
|
|
nitrogen_oxide_emission: Mapped[float]
|
|
|
|
temperature: Mapped[float]
|
|
|
|
co_fraction: Mapped[float]
|
|
|
|
co2_fraction: Mapped[float]
|
|
|
|
x: Mapped[float]
|
|
|
|
y: Mapped[float]
|
|
|
|
z: Mapped[float]
|
|
|
|
file_id: Mapped[str]
|
2024-10-14 19:49:54 +04:00
|
|
|
|
|
|
|
def __repr__(self):
|
2024-10-15 16:34:09 +04:00
|
|
|
return f"<ChExperimentDBExperimentData>"
|