diff --git a/app/db/model.py b/app/db/model.py index 51eec901..f1d8c310 100644 --- a/app/db/model.py +++ b/app/db/model.py @@ -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 @@ -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__,