Default Plugin ER Diagram
This shows how the default plugin's tables (default_plugin_*) clip onto the core. The two core tables shown (workspace, workflow_execution) are integration points only; the full core model is the Core ER Diagram. It's the concrete illustration of the plugin data-model pattern any plugin follows.
Orientation
- Core vs. plugin:
workspaceandworkflow_executionare core; everything else is plugin-owned. - The invariant, visualized: every foreign key points from a plugin table to a core table (or to another plugin table) — no core table references a plugin table. The core is unaware of the plugin.
default_plugin_thingholds the entity-level pointersactive_workspace_idandfinal_workspace_id(both →workspace, nullable) plus theis_deletedsoft-delete flag.default_plugin_workspaceis the entity↔workspace join table, withis_deleted/is_archivedand a unique(thing, workspace)pair. Core workspaces are never hard-deleted; plugin-level deletion/archival lives here.default_plugin_outputanddefault_plugin_inputhold per-workspace results and append-only operator input.
The business rules governing these tables live in the Plugin Developer package; the authoritative schema is the plugin's migrations.