21 lines
759 B
Python
21 lines
759 B
Python
from typing import Optional
|
|
|
|
from sqlalchemy import ForeignKey
|
|
|
|
from base import Base
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
class ExperimentParameters(Base):
|
|
__tablename__ = 'experiment_parameters'
|
|
|
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
|
outer_blades_count: Mapped[int]
|
|
outer_blades_length: Mapped[float]
|
|
outer_blades_angle: Mapped[float]
|
|
middle_blades_count: Mapped[int]
|
|
load_id: Mapped[Optional[int]] = mapped_column(ForeignKey('load_parameters.id', ondelete='SET NULL'))
|
|
recycling_id: Mapped[Optional[int]] = mapped_column(ForeignKey('recycling_parameters.id', ondelete='SET NULL'))
|
|
experiment_hash: Mapped[str]
|
|
|
|
def __repr__(self):
|
|
return f"<ExperimentParameters>" |