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

16 lines
425 B
Python
Raw Normal View History

from base import Base
2024-10-14 19:49:54 +04:00
from sqlalchemy.orm import Mapped, mapped_column
class ExperimentData(Base):
__tablename__ = 'experiment_data'
2024-10-14 19:49:54 +04:00
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
2024-10-14 19:49:54 +04:00
direction: Mapped[float]
temperature: Mapped[float]
nox: Mapped[float]
co2: Mapped[float]
co: Mapped[float]
file_id: Mapped[str]
def __repr__(self):
return f"<ExperimentData>"