feat(validation): complete validation editor and master data modules
This commit is contained in:
parent
2b5c765e41
commit
f73a24df13
73 changed files with 10194 additions and 0 deletions
17
validation-suite/backend/mercury/app/models/program.py
Normal file
17
validation-suite/backend/mercury/app/models/program.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from sqlalchemy import ForeignKey, Integer, String
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.db.base import Base, TimestampMixin, UUIDMixin
|
||||
|
||||
|
||||
class Program(Base, UUIDMixin, TimestampMixin):
|
||||
__tablename__ = "programs"
|
||||
|
||||
device_id: Mapped[str] = mapped_column(ForeignKey("devices.id"), index=True)
|
||||
name: Mapped[str] = mapped_column(String(160))
|
||||
temperature_celsius: Mapped[int | None] = mapped_column(Integer)
|
||||
holding_time_minutes: Mapped[int | None] = mapped_column(Integer)
|
||||
drying_time_minutes: Mapped[int | None] = mapped_column(Integer)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue