Repository navigation
PageNote
github-actions[bot] edited this page Sep 27, 2026
·
1 revision
[!info] Relationship Table Implemented in DB v22 to establish many-to-many placement and grouping between Page and Note.
-
Store:
page_notes -
Key path:
id(UUID) -
Type source:
apps/playground/src/types/storage.ts&packages/core/src/types/storage.ts -
Database version:
wodwiki-db(v23)
The canonical join table establishing placement and calendar membership:
- Connects an authored Note to one or more Page containers (calendar date pages
/journal/YYYY-MM-DDor custom pages/p/:slug). - Replaces the legacy 1:N
Note.pageIdfield and eliminates synthetic note merging on multi-note calendar pages.
| Field | Type | Notes |
|---|---|---|
id |
string | UUID |
pageId |
string | FK → Page.id |
noteId |
string | FK → Note.id |
position? |
number | Display/document ordinal within the parent page |
createdAt |
number | Unix ms |
| Index | Key path | Unique | Purpose |
|---|---|---|---|
by-page |
pageId |
no | Fetch all notes placed on a specific page |
by-note |
noteId |
no | Fetch all pages placing a specific note |
by-page-note |
['pageId', 'noteId'] |
yes | Prevent duplicate placement of the same note on a page |
!