Busflow Docs

Internal documentation portal

Skip to content

Session 5 โ€” Reference Material โ€‹

Goal: Spot-check schemas, events, and protocols for accuracy against the domain model. Estimated time: 60โ€“90 min (skim โ€” total ~470 KB)

Schemas โ€‹

#FileSizeContext
1schema-backoffice.md57 KBOperators, tours, vehicles, crew, pricing
2schema-commerce.md31 KBBookings, payments, tickets, checkout
3schema-operations.md83 KBDispatch, service legs, telemetry, boarding
4schema-communications.md24 KBConversations, messages, templates

Schema review strategy: Pick 3โ€“5 key entities from domain-model.md (e.g., TourTemplate, Booking, ServiceLeg). Find each in the schema file. Confirm columns, types, and constraints match. Check for tenant_id on every domain table.

Events โ€‹

#FileContent
5event-catalog.mdMaster registry of all 53 domain events
6event-contracts-backoffice.mdBackoffice event payloads
7event-contracts-commerce.mdCommerce event payloads
8event-contracts-operations.mdOperations event payloads
9event-contracts-pricing.mdPricing event payloads

Protocols (prioritized by V0.1 relevance) โ€‹

Must read:

Read if time allows:

Skim for later:

๐Ÿ” What to Validate โ€‹

  • [ ] Do schema columns match domain model entity definitions?
  • [ ] Does the event catalog match the context map in domain-driven-design.md ยง8?
  • [ ] Is schema-operations.md (83 KB) too large? Consider splitting.
  • [ ] Are event contracts consistent with current schema column names?
  • [ ] Which protocols describe v0.1 vs. future work? Are they clearly labeled?

Findings โ€‹

Internal documentation โ€” Busflow