The VPIC database is organized around several key components that work together to decode Vehicle Identification Numbers (VINs) and provide vehicle specifications.
erDiagram
Manufacturer ||--o{ WMI : "produces"
Country ||--o{ WMI : "location_of"
Make ||--o{ Wmi_Make : "identifies"
WMI {
varchar Wmi PK
int ManufacturerId FK
int VehicleTypeId FK
int CountryId FK
}
The World Manufacturer Identifier (WMI) system is the foundation of VIN decoding:
Manufacturer
: Company that produces vehiclesWMI
: 3-6 character codes assigned to manufacturersCountry
: Manufacturing locationMake
: Brand names under manufacturers
erDiagram
Make ||--o{ Make_Model : "has"
Model ||--o{ Make_Model : "belongs_to"
VehicleType ||--o{ WMI : "categorizes"
Make_Model {
int Id PK
int MakeId FK
int ModelId FK
}
Vehicle model relationships:
Make_Model
: Links makes to their modelsVehicleType
: Categories like Passenger Car, Motorcycle, etc.Model
: Specific vehicle models
erDiagram
WMI ||--o{ Wmi_VinSchema : "uses"
VinSchema ||--o{ Pattern : "contains"
Element ||--o{ Pattern : "defines"
Pattern {
int Id PK
int VinSchemaId FK
varchar Keys
int ElementId FK
varchar AttributeId
}
Pattern matching system:
VinSchema
: Decoding rules for manufacturersPattern
: Position-specific matching rulesElement
: Decodable vehicle attributesWmi_VinSchema
: Links WMIs to applicable schemas
Essential vehicle specification tables:
BodyStyle
: Vehicle body configurationsDriveType
: 2WD, 4WD, AWD, etc.EngineModel
: Engine specificationsTransmission
: Transmission typesFuelType
: Fuel system informationVehicleType
: Basic vehicle categories
CREATE TABLE VinSchema (
Id int PRIMARY KEY,
Name varchar(100),
SourceWMI varchar(6),
TobeQCed bit
)
CREATE TABLE Pattern (
Id int PRIMARY KEY,
VinSchemaId int,
Keys varchar(50),
ElementId int,
AttributeId varchar(50)
)
CREATE TABLE Element (
Id int PRIMARY KEY,
Name varchar(100),
Code varchar(50),
LookupTable varchar(50),
GroupName varchar(50),
DataType varchar(20)
)
Standard 17-character VIN structure:
- Position 1-3: World Manufacturer Identifier (WMI)
- Position 4-8: Vehicle Description Section (VDS)
- Position 9: Check Digit
- Position 10: Model Year
- Position 11: Plant Code
- Position 12-17: Sequential Number
This database structure is based on the NHTSA's vPIC (Vehicle Product Information Catalog) system. When using this data, please attribute:
"National Highway Traffic Safety Administration (NHTSA) - Vehicle Product Information Catalog (vPIC)"