
🚢 Maritime, Ports & Shipping · Database ERD
Tables for an ocean freight booking platform: shippers, bookings, containers, voyages, bills of lading and tracking events.
Drawing diagram…
Ocean freight database: shippers make bookings from an origin port to a destination port on a voyage; a voyage belongs to a vessel; bookings have containers; each container has tracking events; a bill of lading is issued per booking.
erDiagram
SHIPPER ||--o{ BOOKING : makes
VESSEL ||--o{ VOYAGE : sails
VOYAGE ||--o{ BOOKING : carries
PORT ||--o{ BOOKING : "loads at"
BOOKING ||--|{ CONTAINER : includes
CONTAINER ||--o{ TRACKING_EVENT : has
BOOKING ||--o| BILL_OF_LADING : "documented by"
SHIPPER {
int id PK
string name
string gstin
}
VESSEL {
int id PK
string name
string imo_number
}
VOYAGE {
int id PK
int vessel_id FK
string voyage_no
date departure
}
PORT {
int id PK
string code
string name
}
BOOKING {
int id PK
int shipper_id FK
int voyage_id FK
int origin_port_id FK
int dest_port_id
string status
}
CONTAINER {
int id PK
int booking_id FK
string container_no
string size_type
decimal weight
}
TRACKING_EVENT {
int id PK
int container_id FK
string event
string location
datetime event_time
}
BILL_OF_LADING {
int id PK
int booking_id FK
string bl_number
date issued_on
}A port community system that connects shipping lines, terminals, customs, freight forwarders and truckers on one platform, so documents are shared once instead of emailed many times.
The journey of an import container from unloading to leaving the port: discharge, customs filing, duty payment, delivery order and gate out.
The states a shipping container goes through in an export journey, from empty pick-up to delivery at the destination.
How ships are tracked worldwide: AIS signals picked up by coastal stations and satellites, cleaned, matched to voyages and used for arrival predictions.
Where a container terminal's systems run: the terminal operating system in the data centre, equipment control on cranes and yard vehicles, and gates with automation.
How a port handles an arriving ship: pre-arrival notice, berth allocation, pilot boarding, tug assistance and berthing.