Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Data

Data · rule

data.reference_across_stores

Reference points at an entity in another store.

Area 5, Data; not declinable; the next step is usually the human's.

example
use planning/entities { User }entity OldTodo {    id: Uuid    owner_id: User.id {        on_delete: OnDelete.cascade    }    store: archive}
text
error: `OldTodo.owner_id` refers to a `User` in another store --> domains/planning/entities/old_todo.jadpo:5:5  |5 |     owner_id: User.id {  |     ^^^^^^^^ `OldTodo` is in `archive`  reason: A reference is a foreign key, which a database keeps only between its own tables; an action writes one store, and work across stores goes through an event and a subscriber.  next: Keep `OldTodo` and `User` in one store, or store the id as a plain `Uuid` (human)  rule: data.reference_across_stores  help: https://jadpo.dev/docs/errors/data.reference_across_storescheck failed: 1 error, 3 files

Markdown for agents: /docs/errors/data.reference_across_stores.md.Built from Jadpo main at a707efb.