Persist campaign owner at creation (immutable) #3

Open
opened 2026-08-04 02:09:59 +00:00 by ginjiruu · 0 comments
Owner

The FGA model gives a campaign an owner: [adventurer], but the write model
never records one: no owner_id in campaigns, no owner in EventData or the
Campaign aggregate. Ownership is currently unrepresentable.

Per CONTEXT.md ("Campaign owner"), the owner is the adventurer who created the
campaign — set once at creation and immutable:

  • Add campaigns.owner_id (NOT NULL), populate on create from the acting
    adventurer.
  • Carry ownerId through EventData and the Campaign aggregate.
  • Never update it; creation is the only writer.
The FGA model gives a campaign an `owner: [adventurer]`, but the write model never records one: no `owner_id` in `campaigns`, no owner in `EventData` or the `Campaign` aggregate. Ownership is currently unrepresentable. Per CONTEXT.md ("Campaign owner"), the owner is the adventurer who created the campaign — set once at creation and immutable: - Add `campaigns.owner_id` (NOT NULL), populate on create from the acting adventurer. - Carry `ownerId` through `EventData` and the `Campaign` aggregate. - Never update it; creation is the only writer.
Sign in to join this conversation.
No description provided.