D
DreamLake

DB Schema

Parameters

Flat key-value parameter store with dot-separated keys and append-only journal.

Parameters

Snapshot of current merged state per episode.

FieldTypeDescription
idObjectIdPrimary key
episodeIdString (unique)Parent episode
dataJsonCurrent merged state as dot-path JSON
versionIntIncrements on each write (default: 1)
createdAtDateTimeCreated timestamp
updatedAtDateTimeLast 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.

FieldTypeDescription
idObjectIdPrimary key
parametersIdStringParent Parameters record
versionIntMatches Parameters.version at time of write
patchJsonDot-path keys changed in this write
createdAtDateTimeCreated timestamp
createdByStringUser ID who made the write

Indexes: parametersId, [parametersId, version]