v_incident_report_apparatus: One-to-Many (1:N)
One apparatus can be on many incident reports
Referenced through apparatus_id
v_fire_station: Many-to-One (N:1)
Many apparatus belong to one station
Referenced through fire_station_id
v_work_order: One-to-Many (1:N)
One apparatus can have many work orders
Referenced through apparatus_id
Column | Type | Description |
id | integer | Primary key |
name | varchar(40) | Apparatus name |
apparatus_type_code | varchar(3) | Type code |
vehicle_number | varchar(25) | Vehicle number |
primary_use_code | varchar(2) | Primary use |
vehicle_id | varchar(25) | Vehicle ID |
unit_call_sign | varchar(40) | Call sign |
vin_number | varchar(17) | VIN |
model | varchar(40) | Model |
engine | varchar(40) | Engine details |
tank_volume | integer | Tank volume |
pump_type | varchar(40) | Pump type |
fire_station_id | integer | Station reference |
odometer | numeric(8,2) | Odometer reading |
apparatus_group_id | integer | Group reference |
manufacturer | varchar(40) | Manufacturer |
manufacture_year | smallint | Year made |
pto_hours | numeric(8,2) | PTO hours |
pump_hours | numeric(8,2) | Pump hours |
engine_hours | numeric(8,2) | Engine hours |