ores.analytics.pricing_model_product_parameter
Table of Contents
Stores model parameters, engine parameters, and global parameters as normalised rows for granular diffing. Product-scoped parameters have pricing_model_product_id set; global parameters have it NULL with parameter_scope = 'global'.
1. Flags
2. Columns
2.1. id
UUID uniquely identifying this parameter row.
Surrogate key for the parameter.
2.2. pricing_model_config_id
Parent pricing model configuration.
Soft FK to ores_analytics_pricing_model_configs_tbl. Always set.
ctx.generate_uuid()
2.3. pricing_model_product_id
Parent product mapping, if product-scoped.
Soft FK to ores_analytics_pricing_model_products_tbl. NULL for global parameters.
std::nullopt
2.4. parameter_scope
Scope of the parameter.
One of: 'model', 'engine', 'global'.
std::string("model")
2.5. parameter_name
Parameter name.
Examples: 'Calibration', 'Reversion', 'sy', 'ContinueOnCalibrationError'.
std::string("Reversion")
2.6. parameter_value
Parameter value as text.
All values stored as text. Examples: '0.03', 'Bootstrap', 'Y', '1.0,2.0,3.0'.
std::string("0.03")
3. SQL
3.1. Flags
4. C++
4.1. Flags
4.2. Repository
4.3. Domain includes
#include <chrono> #include <optional> #include <string> #include <boost/uuid/uuid.hpp>
4.4. Entity includes
#include <string> #include "sqlgen/Timestamp.hpp" #include "sqlgen/PrimaryKey.hpp"
4.5. Conventions
4.6. Table display
| column | header |
|---|---|
| parameter_scope | Scope |
| parameter_name | Name |
| parameter_value | Value |
| modified_by | Modified By |
| version | Version |
4.7. Presentation
4.7.1. Detail fields
| field | label | widget | type | is_key | is_required | placeholder |
|---|---|---|---|---|---|---|
| parameter_scope | Scope | parameterScopeCombo | static_combo | true | ||
| parameter_name | Name | parameterNameEdit | line_edit | true | true | Parameter name (e.g. Calibration, Reversion, sy) |
| parameter_value | Value | parameterValueEdit | line_edit | true | Parameter value (e.g. Bootstrap, 0.03, Y) |
4.7.2. Columns
| enum_name | field | header | type | width |
|---|---|---|---|---|
| ParameterScope | parameter_scope | Scope | string | 80 |
| ParameterName | parameter_name | Name | string | 200 |
| ParameterValue | parameter_value | Value | string | 200 |
| Version | version | Version | int | 70 |
| ModifiedBy | modified_by | Modified By | string | 120 |
| RecordedAt | recorded_at | Recorded At | timestamp | 150 |
4.8. Custom repository methods
5. See also
- ores.analytics — component group overview.