Skip to content

Store Day

aggregate-root store


The operational trading period for a physical store on a given date.

Business Purpose: Manage the opening and closing of a store trading day and serve as the context for all in-store transactions.

Identity

Type Field Description
value-based store-day-id A store day is uniquely identified by the store and the trading date.

Attributes

Attribute Description
store-day-id Store Day ID Stable store day identifier.
store-id Store ID Store reference.
trading-date Trading Date Calendar date of the trading day.
status Status Current store day state.
opened-at Opened At Timestamp when the store opened.
closed-at Closed At Timestamp when the store closed.

Lifecycle

scheduledopenclosed

Invariants

  • one-open-day-per-store — Only one store day may be open per store at any time.
  • closed-day-is-terminal — A store day cannot be re-opened once closed.

Relationships

Type Target
belongs-to store store

Events

Event Classification Terminal
StoreDayOpened transitioned
StoreDayClosed transitioned

Used by Capabilities

  • store-operations Store Operations

Used by Applications

  • POS pos

Note

Added in EVT-001. Store Day is the operational container for in-store transactions.


← Back to Store Domain