You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scope: every object in the LogisticsIntelligenceDW database — with business meaning, allowed
values, relationships, and example values. This is the reference document: read it when you
need to know what a column means, not for the design story (that's
ARCHITECTURE.md and STAR_SCHEMA.md). Source of truth for
relationships: data/DATABASE_SCHEMA.txt.
1. Layer Overview
Layer
Schema
Objects
Rows (verified)
Purpose
Bronze
bronze
14 staging tables
549,706
Raw, immutable source copy
Silver
silver
7 dims + 8 facts
551,167
Clean, typed, validated
Gold
gold
7 dims + 8 facts + 11 views + audit
1,102,346
Star schema + semantic layer
2. Bronze — Raw Staging
One table per source CSV, all columns NVARCHAR, no transformation. Row counts match the
source export exactly.
Table
Rows
Source file
Business content
bronze.drivers
150
drivers.csv
Driver demographics, licenses, employment
bronze.trucks
120
trucks.csv
Fleet equipment, acquisition, status
bronze.trailers
180
trailers.csv
Trailer inventory, types, status
bronze.customers
200
customers.csv
Customer accounts, contracts, revenue potential
bronze.facilities
50
facilities.csv
Terminals and warehouses, capacity
bronze.routes
58
routes.csv
Origin-destination pairs, rates
bronze.loads
85,410
loads.csv
Shipment details, revenue, booking type
bronze.trips
85,410
trips.csv
Trip execution: distance, fuel, duration
bronze.fuel_purchases
196,442
fuel_purchases.csv
Fuel transactions, prices, locations
bronze.maintenance_records
2,920
maintenance_records.csv
Service history, costs, downtime
bronze.delivery_events
170,820
delivery_events.csv
Pickup/delivery timestamps, on-time status
bronze.safety_incidents
170
safety_incidents.csv
Accidents, violations, damage costs
bronze.driver_monthly_metrics
4,464
driver_monthly_metrics.csv
Monthly driver performance (pre-aggregated)
bronze.truck_utilization_metrics
3,312
truck_utilization_metrics.csv
Monthly equipment utilization (pre-aggregated)
3. Silver — Clean Conformed Layer
3.1 Dimensions
silver.dim_driver — 150 rows
Column
Type
Business meaning
Allowed values / example
driver_id
NVARCHAR(20) PK
Unique driver key
DRV00001
full_name
NVARCHAR(101)
Driver name (computed)
Jennifer Hernandez
hire_date / termination_date
DATE
Employment window
2014-10-31 / NULL = still employed
license_number / license_state
NVARCHAR
CDL credentials
DL673510887 / WA
date_of_birth
DATE
Age context
1973-11-07
home_terminal
NVARCHAR(50)
Base facility city
Denver
employment_status
NVARCHAR(20)
Employment state
Active (124) · Terminated (26)
cdl_class
NVARCHAR(5)
License class
A
years_experience
INT
Tenure in years
3
is_active
BIT (computed)
Status flag
1 = Active
Usage note: filter WHERE is_active = 1 for current-driver analysis; the fact layer keeps
historical trips even after termination.
silver.dim_truck — 120 rows
Column
Type
Business meaning
Allowed values / example
truck_id
NVARCHAR(20) PK
Unique asset key
TRK00055
unit_number
NVARCHAR(20)
Yard number
3463
make
NVARCHAR(50)
Manufacturer
Peterbilt · Kenworth · Volvo · Freightliner · International
model_year
INT
Year built
2016
vin
NVARCHAR(30)
Vehicle identification
1VV205190335317039
acquisition_date / acquisition_mileage
DATE / INT
Purchase context
2017-04-27 / 18814
fuel_type
NVARCHAR(20)
Powerplant
Diesel
tank_capacity_gallons
INT
Fuel capacity
200
status
NVARCHAR(20)
Fleet state
Active (92) · Maintenance (15) · Inactive (13)
home_terminal
NVARCHAR(50)
Base city
Omaha
Usage note:status changes over time — currently SCD Type 1 (see
STAR_SCHEMA.md).
silver.dim_trailer — 180 rows
Column
Type
Business meaning
Allowed values / example
trailer_id
NVARCHAR(20) PK
Unique trailer key
TRL00167
trailer_number
NVARCHAR(20)
Yard number
—
trailer_type
NVARCHAR(50)
Equipment class
Dry Van · Reefer · Flatbed
length_feet
INT
Size
53
model_year / vin
INT / NVARCHAR
Equipment age / identity
2019 / VIN
acquisition_date
DATE
Purchase date
2020-03-15
status
NVARCHAR(20)
Fleet state
Active · Maintenance · Inactive
current_location
NVARCHAR(50)
Last known city
Chicago
silver.dim_customer — 200 rows
Column
Type
Business meaning
Allowed values / example
customer_id
NVARCHAR(20) PK
Unique customer key
CUST00001
customer_name
NVARCHAR(100)
Account name
Metro Wholesale
customer_type
NVARCHAR(30)
Booking relationship
Dedicated · Contract · Spot
credit_terms_days
INT
Payment terms
60 · 30 · 15
primary_freight_type
NVARCHAR(30)
Commodity class
General · Retail · Food/Beverage · Consumer Goods
account_status
NVARCHAR(20)
Account state
Active (168) · Inactive (32)
contract_start_date
DATE
Relationship start
2020-02-20
annual_revenue_potential
DECIMAL(12,0)
Estimated annual value
985117
Usage note:customer_type maps to loads.booking_type — a load's booking type should agree
with the customer's relationship type.
Orphan convention (silver): facts reference '-1' when the parent key is missing from the
source dim — e.g. trips without a truck. No fact row is ever dropped. Counts:
DATA_QUALITY.md.
4. Gold — Star Schema
4.1 Dimensions (surrogate keys, -1 = Unknown)
Table
PK
Business key
Rows
Adds vs silver
gold.dim_date
date_id (DATE)
—
1,461
copy of silver calendar
gold.dim_driver
driver_sk (IDENTITY)
driver_id (UNIQUE)
151
+ Unknown row
gold.dim_truck
truck_sk (IDENTITY)
truck_id (UNIQUE)
121
+ Unknown row
gold.dim_trailer
trailer_sk (IDENTITY)
trailer_id (UNIQUE)
181
+ Unknown row
gold.dim_customer
customer_sk (IDENTITY)
customer_id (UNIQUE)
201
+ Unknown row
gold.dim_facility
facility_sk (IDENTITY)
facility_id (UNIQUE)
51
+ Unknown row
gold.dim_route
route_sk (IDENTITY)
route_id (UNIQUE)
59
+ Unknown row
Example:driver_sk = -1 → "Unknown Driver"; driver_sk = 1 → the first real driver.