FieldValueRecord - bitcobblers/wod-wiki GitHub Wiki
tags: [domain-model] store: field_values keyPath: "key" db: wodwiki-db (v23) role: relationship-table
[!info] Current vs Future State This document distinguishes the current implementation in code from proposed/future-state enhancements.
-
Store:
field_values -
Key path:
key -
Type source:
packages/core/src/types/storage.ts -
Database version:
wodwiki-db(v23)
Relationship table — one observed categorical value (string/boolean fields only) of a FieldCatalogEntry, keyed [fieldId, value] with the value keeping its original spelling.
| Field | Type | Notes |
|---|---|---|
key |
[string, string] | [fieldId, value] — compound key |
fieldId |
string | FK → FieldCatalogEntry |
value |
string | Original spelling |
sourceCount |
number | Supporting sources; prunes at zero |
| Index | Key path | Unique | Purpose |
|---|---|---|---|
by-field |
fieldId |
no | values of a field |
[!info] This store is a relationship table.
-
fieldId→ FieldCatalogEntry
- Retains current schema and pruning logic; tracks categorical value frequencies from both notes and future sessions.
!