├── schema.sql └── README.md /schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `VehicleModelYear` ( 2 | `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, 3 | `year` INT(4) UNSIGNED NOT NULL, 4 | `make` VARCHAR(50) NULL, 5 | `model` VARCHAR(50) NOT NULL, 6 | PRIMARY KEY (`id`), 7 | UNIQUE `U_VehicleModelYear_year_make_model` (`year`, `make`, `model`), 8 | INDEX `I_VehicleModelYear_year` (`year`), 9 | INDEX `I_VehicleModelYear_make` (`make`), 10 | INDEX `I_VehicleModelYear_model` (`model`) 11 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | automotive-model-year-data 2 | ========================== 3 | 4 | Automotive data including vehicle model, make, and year for database creation. Currently includes 7,268 model-years. 5 | 6 | ### To use: 7 | 8 | $ cd automotive-model-year-data 9 | $ mysql -u root 10 | mysql> use yourDbName; 11 | mysql> source schema.sql; 12 | mysql> source data.sql; 13 | 14 | ### Notes: 15 | 16 | I needed vehicle data for an app and could not find any source that was complete, clean, and free. I hope this can help others who face the same challenge :) 17 | 18 | Please send pull requests for any data additions, modifications, or deduplications you can find! 19 | 20 | This data is sourced partly from [Freebase](http://freebase.com), licensed under [CC-BY](http://creativecommons.org/licenses/by/2.5/), and is free for you to use and modify under that license. 21 | --------------------------------------------------------------------------------