A forwarder new to the job asked a simple question in a community thread: how do you keep every shipment's dates, trucking and client follow-ups straight when the list keeps growing? The common answers are a spreadsheet, a calendar, or a reminder tool. Those help. What they are usually missing is a data model that separates what happened from what is expected, and that treats the next deadline as a record rather than a memory.
This is a small design you can build in an afternoon. It is not a TMS.
One status column loses information
A status column on a shipment row gets overwritten by whoever touched it last. You lose the history, you cannot tell whether "arrived" was an estimate or a fact, and you cannot answer "what did we believe on Tuesday?"
Borrow a distinction from DCSA
DCSA's Track and Trace standard for container shipping is built around events. Each event carries a date-time and a classifier code. The classifier values include ACT (actual), PLN (planned) and EST (estimated). You do not need to implement the standard to borrow the idea: one event table, and every row says whether it is planned, estimated or actual.
create table shipment_event ( id bigint primary key, shipment_id bigint not null, event_type text not null, -- booked, departed, arrived, cleared, delivered basis text not null check (basis in ('planned','estimated','actual')), occurred_at timestamptz not null, -- when it happened, or is expected to recorded_at timestamptz not null, -- when we learned it source text not null -- carrier, customer, staff ); Append a row for every change. Never update one.
Current status is a query
The current status is the latest actual event. It is derived, so it can never disagree with the history.
select shipment_id, event_type, occurred_at from ( select e.*, row_number() over (partition by shipment_id order by occurred_at desc, id desc) as rn from shipment_event e where basis = 'actual' ) t where rn = 1; To ask what you believed at an earlier time, add and recorded_at <= :as_of to the inner where. An event you learned about late is then left out of answers about earlier times, while today's answer includes it.
The next cutoff is a row, not a memory
Most missed dates are not missed events. They are cutoffs nobody owned: a document deadline, a pickup, a release. Give each one a row.
create table shipment_cutoff ( id bigint primary key, shipment_id bigint not null, kind text not null, -- pre_alert, pickup, do_release due_at timestamptz not null, owner text not null, done_at timestamptz ); The work list is the earliest open cutoff per shipment, sorted by due time:
select shipment_id, kind, due_at, owner from ( select c.*, row_number() over (partition by shipment_id order by due_at) as rn from shipment_cutoff c where done_at is null ) t where rn = 1 order by due_at; I ran both queries against a few sample rows in SQLite 3.46. The column types above are PostgreSQL-flavoured, and the window functions are standard SQL, so adapt the types for your database. Colour the list by due_at, not by how anxious a shipment feels.
Keep notifying separate from recording
Once events are rows, it is tempting to send a customer message for each one. Do not. Updating the record and notifying the customer are two decisions, and a repeated or enriched update may belong in the first without triggering the second. BlinkShift's note on which tracking updates should notify a customer walks through a small test set for that.
When this stops being enough
A shared spreadsheet or a small database can hold this model while one or two people use it. It strains when several people update at once, when customers need to see their own shipments, or when the cutoffs depend on more than dates. For the customer side, see how a client portal can show the same record your staff use. Before you commission anything custom, read when buying an existing logistics product is the better first move.
Hasnain Qureshi, Co-Founder and Lead Engineer, BlinkShift.