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

18 lines
454 B
Python

from typing import Optional
from db.models.base import Base
from sqlalchemy.orm import Mapped, mapped_column
class ExperimentData(Base):
__tablename__ = 'experiment_data'
id: Mapped[int] = mapped_column(primary_key=True)
direction: Mapped[float]
temperature: Mapped[float]
nox: Mapped[float]
co2: Mapped[float]
co: Mapped[float]
file_id: Mapped[Optional[str]]
def __repr__(self):
return f"<ExperimentData>"