DB Schema
Parameters
Flat key-value parameter store with dot-separated keys and append-only journal.
Parameters
Snapshot of current merged state per episode.
| Field | Type | Description |
|---|---|---|
id | ObjectId | Primary key |
episodeId | String (unique) | Parent episode |
data | Json | Current merged state as dot-path JSON |
version | Int | Increments on each write (default: 1) |
createdAt | DateTime | Created timestamp |
updatedAt | DateTime | Last updated |
Relations: entries: ParameterEntry[]
Example data:
{ "controller.type": "mpc", "controller.horizon": 10, "model.lr": 0.001 }ParameterEntry
Journal of parameter writes. Each PUT or PATCH appends one entry.
| Field | Type | Description |
|---|---|---|
id | ObjectId | Primary key |
parametersId | String | Parent Parameters record |
version | Int | Matches Parameters.version at time of write |
patch | Json | Dot-path keys changed in this write |
createdAt | DateTime | Created timestamp |
createdBy | String | User ID who made the write |
Indexes: parametersId, [parametersId, version]