Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...

    Interface OrderStatusTransitionRecord

    One appended fulfillment transition of a finalized order.

    This is the durable historical fact behind a state change: orders.status holds the current state, and this record holds the fact that the order left fromStatus at transitionedAt and entered toStatus. A correction appends another record instead of rewriting earlier ones, so history and current state always agree.

    interface OrderStatusTransitionRecord {
        fromStatus: OrderStatus;
        orderId: string;
        toStatus: OrderStatus;
        transitionedAt: Date;
    }
    Index
    fromStatus: OrderStatus

    State the order left.

    orderId: string

    Owning finalized-order identity.

    toStatus: OrderStatus

    State the order entered.

    transitionedAt: Date

    Database time at which the transition committed.