Core Model V2

Task 70 formalizes a unified, context-aware core model for Tov+.

1 min read

Task 70 formalizes a unified, context-aware core model for Tov+.

Scope

  • contexts become the shared binding layer for occasion-, event-, and actor-scoped records.
  • event_participations capture entry and exit windows instead of assuming event-wide access.
  • design_themes make visual language and printable defaults first-class persisted state.
  • module_instances provide a context-bound runtime view over module usage.
  • timeline items now carry both context_id and visibility_scope.

Runtime

  • GET /v1/occasions/:occasion_id/core-model-v2 returns the planner aggregate view.
  • timeline create and update flows resolve a concrete context before persisting items.
  • vendor timeline reads additionally enforce event participation windows.
  • the planner shell consumes design_theme.tokens through CSS custom properties.

Database

Phase 30 adds:

  • contexts
  • design_themes
  • event_participations
  • module_instances
  • context and visibility columns on timeline and module lifecycle tables

The fixture set now seeds both demo occasions with contexts, theme records, participations, and module-instance rows so the local environment reflects the refined model.