Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/db/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,9 @@ class Simulation(Entity, NameDescriptionVectorMixin):
entity_id (uuid.UUID): Foreign key referencing the entity ID.
entity (Entity): The entity this simulation is associated with.
scan_parameters (JSON_DICT): Scan parameters for the simulation.
scan_indices (JSON_DICT): Dictionary where keys are the names of scan parameters,
and the integer values are the index of this Simulation's value of that scan parameter
in the SimulationCampaign scan_parameters dictionary for that key.
"""

__tablename__ = EntityType.simulation.value
Expand All @@ -1473,6 +1476,11 @@ class Simulation(Entity, NameDescriptionVectorMixin):
nullable=False,
server_default="{}",
)
scan_indices: Mapped[JSON_DICT] = mapped_column(
default={},
nullable=False,
server_default="{}",
)

__mapper_args__ = { # noqa: RUF012
"polymorphic_identity": __tablename__,
Expand Down
Loading