page:blueprints:direct to consumer brands:order tracking:django

Direct-to-consumer brands: order tracking using Django

A order tracking blueprint for direct-to-consumer brands built with Django on Ample.

Domain schema:

Public information:

Out of scope until handling is reviewed:

Checkout and payment are handled by your commerce provider; only catalog, stock and order status are modeled here.

Technical basis verified on Django:

Representative Queries:

Workflow Steps:

  1. Model the direct-to-consumer brands domain: Create the tables products, stock_movements, orders, order_lines, events.
  2. Model orders: with explicit status transitions and order lines.
  3. Apply status changes transactionally: and record an event per change.
  4. Expose status history: to authorized callers only.
  5. Deploy: Run the synchronous deploy once and read the result.
  6. Verify: Run the pattern self-test(s) from the example (/p/transactional-workflows).

Limitations: