Database Tables and Entity Mapping¶
This page contains information about tables in the MIKE OPERATIONS relational database.
Table schema definitions and diagrams are aligned with MIKE OPERATIONS 2023.
Diagrams are made with the ERD tool of PgAdmin (PostgreSQL).
Analysis Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| mca_comparison | AnalysisComparison | This class implementing analysis comparison. | |
| mca_session | AnalysisSession | This class implementing analysis session. | |
| mca_session_comparison | MCASessionComparison | This class implementing MCA session comparison. | |
| mca_setup | AnalysisSetup | This class implementing analysis setup. | |
| mca_setup_group | MCASetupGroup | This class implementing MCA setup group. | |
| mca_tradeoff | AnalysisTradeoff | This class implementing analysis tradeoff. |
Core¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| action | Action | Class for Action | |
| dss_admin | DssAdmin | The DssAdmin class | |
| entity_description | EntityDescription | Base class for group entity | |
| entity_type | EntityType | Base class for group entity | |
| setting | GlobalSetting | GlobalSetting class | |
| global_role | GlobalRole | The GlobalRole class | |
| userinfo | User | User class | |
| user_login_status | UserLoginStatus | UserLoginStatus class | |
| user_setting | UserSetting | UserSetting class | |
| user_workspace | UserWorkspace | The UserWorkspace class | |
| workspace | Workspace | Workspace class | |
| workspace_role | WorkspaceRole | WorkspaceRole class | |
| workspace_setting | WorkspaceSetting | WorkspaceSetting class | |
| blob | Blob |
Document Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| document | Document | SpreadsheetDTO object for NHibernate mapped table 'document'. | |
| document_feature_assoc | DocumentFeatureAssoc | This class represenets an associatio between a document and a geographical feature | |
| document_folder_association | DocumentFolderAssociation | DocumentFolderAssociation object for NHibernate mapped table 'document_folder_association'. | |
| document_folder | DocumentFolder | DocumentGroupDTO object for NHibernate mapped table 'documentFolder'. | |
| document_relationship | DocumentRelationship | DocumentRelationship object for NHibernate mapped table 'document_relationship'. |
Event Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| event | EventDTO | Event table containing events raised by the event service, to be used by other session subscribing to events, e.g. in order to refresh and update the user interface when events are raised. The event table are primaryly containing events raised by the Job Manager (starting, terminating and finishing jobs), but also the Operations Manager are raising events. |
Favorite Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| favorite | Favorite | FavoriteDTO object for NHibernate mapped table 'favorite'. | |
| favorite_group | FavoriteGroup | FavoriteGroupDTO object for NHibernate mapped table 'favorite_group'. |
Gauge Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| gauge_rc | RatingCurve | Class implementing rating curves | |
| gauge_rc_feature_assoc | RatingCurveFeatureAssociation | Class implementing associations between rating curves and features | |
| gauge_rc_segment | RatingCurveSegment | Class implementing rating curve segments |
GIS Module¶

Each feature class contain a reference in the table_name column to a table with the fc_ prefix.
Tables with the fc_ prefix contains a list of features of the feature class and the geometry of the feature as well as a columnn per feature class attribute containing attribute values of the attributes.
| Table | Entity | Description | Columns |
|---|---|---|---|
| feature_class | FeatureClass | FeatureClass represents a set of spatial features with common attributes. | |
| feature_class_group | FeatureClassGroup | FeatureClassGroup represents the grouping of feature classes. | |
| raster_data | Raster | Raster represents grided data. | |
| raster_group | RasterGroup | RasterGroup represents raster grouping. |
Indicator Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| indicator_definition | IndicatorDefinition | Represents indicator definition entity. | |
| indicator_group | IndicatorGroup | Represents indicator group entity. |
Job Module¶

With MIKE OPERATIONS 2023.2, job_group was added to support grouping of jobs.
| Table | Entity | Description | Columns |
|---|---|---|---|
| job | Job | Job represents the the definition of tasks to execute and the sequence of the tasks. | |
| job_group | JobGroup | JobGroup represents the grouping of jobs | |
| jobinstance | JobInstance | JobInstance represents the job runs of a job with time of execution and status. |
Metadata Module¶
Tables of the metadata module contains both entity metadata and data for the changelog.
Metadata¶

In the metadata diagram, the time series table is shown as an example on how metadata are connected to an entity.
Metadata can be specified for any entity type. The following entity types are supported.
- Document
- Favorite
- Feature Class
- MCA comparison
- MCA setup
- Indicator
- Job
- Model Setup
- Place
- MCA session
- Raster
- Report definition
- Scenario
- Script Storage
- Simulation
- Spreadsheet
- Time Series
- Workflow
| Table | Entity | Description | Columns |
|---|---|---|---|
| change_log | ChangeLogEntry | ChangeLogEntry represents changes made to an entity. | |
| language | Language | Language represents translation langauges for metadata. | |
| metadata | Metadata | Metadata represents metadata for an entity (time_series, feature_class, raster, spreadsheet etc.). | |
| metadata_schema | MetadataSchema | MetadataSchema represents metadata schemas for specific entity types. | |
| translated_key | TranslatedKey | TranslatedKey represents translations for languages. |
Operations Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| operations_manager_image | OperationsImage | ||
| operations_manager_state | OperationsState | ||
| operations_manager | OperationsTree | ||
| oper_manager_view_settings | OperationsViewSettings |
Places Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| place | Place | Class for Place | |
| place_collection | PlaceCollection | Class for PlaceCollection | |
| place_collection_group | PlaceCollectionGroup | Class for PlaceCollectionGroup | |
| place_indicator | PlaceIndicator | Class for PlaceIndicator | |
| place_indicator_style | PlaceIndicatorStyle | Class for PlaceIndicatorStyle | |
| place_indicator_threshold | PlaceIndicatorThreshold | Class for PlaceIndicatorThreshold | |
| place_time_interval | PlaceTimeInterval | Class of PlaceTimeInterval, containing time intervals for places. |
Realtime Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| threshold_cache | ThresholdCache | ||
| threshold_cache_feature | ThresholdCacheFeature |
Report Module¶

Report templates are stored as Word documents in the blob table.
| Table | Entity | Description | Columns |
|---|---|---|---|
| report_content_item | ContentItem | ||
| report | Report | ||
| report_group | ReportGroup |
Scenario Module¶
Model Setup Diagram¶
Note that some registration information are stored as fast Protobuf formatted text (like XML) in the blob table, so that columns contains id references to the blob table.
This goes for the following types (columns):
- Model Object Types (model_object_type_list_blob)
- Model Objects (model_object_blob)
- ModelInputTimeseries (input_time_series_blob)
- ModelOutputTimeseries (output_time_series_blob)

Scenario Diagram¶

Simulation Diagram¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| linked_transfer | LinkedTransfer | LinkedTransfer class which represents a linked transfer between model input and output. | |
| linking_model_s etup |
LinkingModelSetup | LinkingModelSetup class which represents a linking model setup for the scenario Manager | |
| model_setup | ModelSetup | ModelSetup represents the model setup of a registered model. | |
| model_setup_gro up |
ModelSetupGroup | ModelSetupGroup contains groups of model setups. | |
| model_setup_ind icator_def |
ModelSetupIndicatorD efinition |
ModelSetupIndicatorDefinition represents a template for creating indicators for a simulation. The simulation indicators can be used in the model optimization. | |
| model_setup_ini tial_conditions |
ModelInitialConditio n |
ModelInitialCondition represents initial conditions of a model setup stored as blobs in the blob table (ref. content). Initial conditions represents a collection of states covering an interval in time to be used for initializing the model. The nature of these states is defined by the model and the adapter. | |
| model_setup_inp ut_time_series |
ModelInputTimeseries | ModelInputTimeseries represents input time series of a model setup. Each model input time series is associated to a model object. | |
| model_setup_obj ect |
ModelObject | ModelObject represents a model object of a model setups. Model objects contain a spatial reference as well as model object type information. | |
| model_setup_oth er_output_data |
ModelOtherOutputData | ModelOtherOutputData represents output files connected to the model setup. This includes log files. | |
| model_setup_out put_data |
ModelOutputData | ModelOutputData represents output files of the model setup connected to a model object. This includes adapter specific output files like PDF or XML files. | |
| model_setup_out put_time_series |
ModelOutputTimeserie s |
ModelOutputTimeseries represents an output time series of a model setup. Each model output time series is associated to a model object. | |
| model_setup_spa tial_in_ts |
ModelSpatialInputTim eseries |
ModelSpatialInputTimeseries represents spatial input timeseries of a model setup. | |
| model_setup_spa tial_output_ts |
ModelSpatialOutputTi meseries |
ModelSpatialOutputTimeseries represents spatial output timeseries of a model setup. | |
| optimization_re sult |
OptimizationResult | Class for OptimizationResult. Implements the interface and inherits from the class. | |
| optimization_re sult_file |
OptimizationResultFi le |
class for Optimization result file. | |
| optimization_sc enario |
OptimizationScenario | Class for OptimizationScenario. Implements the interfaces and inherits from the class. | |
| sensitivity_ana lysis_result |
SensitivityAnalysisR esult |
Class for SensitivityAnalysisResult. Implements the interface and inherits from the class. | |
| scenario_compar ison |
ScenarioComparison | Class for scenario model object. | |
| sce_comp_model_ setup_assoc |
ScenarioComparisonMo delSetupAssociation |
ScenarioComparisonModelSetupAssociation class. | |
| sce_comp_sim_as soc |
ScenarioComparisonSi mulationAssociation |
ScenarioComparisonSimulationAssociation class. | |
| scenario | Scenario | Scenario represents the scenarios of a registered model setup. For a scenario, a number og model objects and input and/or output time series are included. Included input time series defines what input can be changed in the scenario. Included output time series defines what simulation results are imported after a simulation run. | |
| sce_in_ts_def | ScenarioInputTimeser iesDefinition |
ScenarioInputTimeseriesDefinition represents the input time series of the model setup included in the scenario. Scenario input time series included defines the time series able to change in the scenario. | |
| scenario_model_ object |
ScenarioModelObject | ScenarioModelObject represents the model objects of the model setup included in the scenario in order to set model object properties. | |
| sce_other_out_d ata_def |
ScenarioOtherOutputD ataDefinition |
ScenarioOtherOutputDataDefinition represents output files connected to the scenario. This includes log files. | |
| sce_out_data_de f |
ScenarioOutputDataDe finition |
ScenarioOutputDataDefinition represents scenario output files connected to a model object. This includes adapter specific output files like PDF or XML files. | |
| sce_out_ts_def | ScenarioOutputTimese riesDefinition |
ScenarioOutputTimeseriesDefinition represents the output time series of the model setup included in the scenario. Scenario output time series included will be stored in the database after a simulation run. | |
| sce_spa_in_ts_d ef |
ScenarioSpatialInput TimeseriesDefinition |
ScenarioSpatialInputTimeseriesDefinition represents the spatial input time series of the model setup included in the scenario. Spatial scenario input time series included defines the spatial time series able to change in the scenario. | |
| sce_spa_out_ts_ def |
ScenarioSpatialOutpu tTimeseriesDefinition |
ScenarioSpatialOutputTimeseriesDefinition represents the output time series of the model setup included in the scenario. Spatial scenario output time series included will be stored in the database after a simulation run. | |
| simulation | Simulation | Simulation represents simulation runs based on a scenario configuration. | |
| simulation_indi cator |
SimulationIndicator | SimulationIndicatorDTO object for NHibernate mapped table 'simulation_indicator'. | |
| sim_in_ts | SimulationInputTimes eries |
SimulationInputTimeseries represents the input timeseries defined by the scenario used for the simulation run. | |
| simulation_mode l_object |
SimulationModelObjec t |
SimulationModelObject represents model objects of a scenario used for the simulation run. | |
| sim_other_out_d ata |
SimulationOtherOutpu tData |
SimulationOtherOutputData represents simulation output files connected to the simulation. This includes log files. | |
| simulation_outp ut_data |
SimulationOutputData | SimulationOutputData represents simulation output files connected to a model object. This includes adapter specific output files like PDF or XML files. | |
| sim_out_ts | SimulationOutputTime series |
SimulationOutputTimeseries represents the output time series results of a simulation. The spatial output time series included is defined by the scenario. | |
| sim_spa_in_ts | SimulationSpatialInp utTimeseries |
SimulationSpatialInputTimeseries represents the spatial input timeseries defined by the scenario used for the simulation run. | |
| sim_spa_out_ts | SimulationSpatialOut putTimeseries |
SimulationSpatialOutputTimeseries represents the spatial output time series results of a simulation. The output time series included is defined by the scenario. |
Script Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| script_prepared | PreparedScript | Represents prepared script entity. Class for prepared script. | |
| script | Script | Represents script entity. | |
| script_group | ScriptGroup | Class represents script group entity. | |
| script_storage | ScriptStorage | Represents script storage entity. |
Spreadsheet Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| spreadsheet | Spreadsheet | Spreadsheet reprsents Excel type spreadsheets (.xls) stored in the blob table. | |
| spreadsheet_fea ture_assoc |
SpreadsheetFeatureAs sociation |
SpreadsheetFeatureAssociation represents associations between spredasheets and features of feature classes. | |
| spreadsheet_gro up |
SpreadsheetGroup | SpreadsheetGroup represents spredasheet groups for grouping spreadsheets. |
Timeseries Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| time_series_blo b |
DataSeriesBlobDTO | Represents time series blobs and the reference to the blob table containg the zipped time series values. | |
| time_series_fla g |
FlagDefinition | Time series flag definitions (color, value, description). | |
| time_series_fla g_Type |
FlagType | Time series flag types | |
| time_series_com ments |
TimeSeriesCommentMap ping |
Comments associated to time series. | |
| time_series | DataSeries | Dataseries containing time series information. A time series can be of storage type Raw (0) or Blob (1). Time step values of storage type Raw can be found in the time_series_value table. Time step values of storage type Blob can be found in the time_series_blob table. |
|
| ts_feature_asso c |
TimeSeriesFeatureAss ociation |
Associations between time series and features of feature classes in the GIS module. | |
| ts_flag_type_ma pping |
TimeSeriesFlagMappin g |
Mapping of flags and time series. | |
| time_series_gro up |
TimeSeriesGroup | Time series group. |
Workflow Module¶

| Table | Entity | Description | Columns |
|---|---|---|---|
| workflow | Workflow | ||
| workflow_group | WorkflowGroup |