PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "car_names" (
"MakeId" INT,
"Model" TEXT,
PRIMARY KEY ("MakeId")
);

CREATE TABLE "cars_data" (
"Id" INT,
"Edispl" FLOAT,
"Horsepower" TEXT,
"Weight" INT,
"Accelerate" FLOAT,
PRIMARY KEY ("Id"),
FOREIGN KEY ("Id") REFERENCES "car_names"("MakeId")
);





INSERT INTO "car_names" VALUES ("1", "Model A");
INSERT INTO "car_names" VALUES ("2", "Model B");
INSERT INTO "car_names" VALUES ("3", "Model C");
INSERT INTO "car_names" VALUES ("4", "Model D");
INSERT INTO "car_names" VALUES ("5", "Model E");
INSERT INTO "car_names" VALUES ("6", "Model F");
INSERT INTO "car_names" VALUES ("7", "Model G");
INSERT INTO "car_names" VALUES ("8", "Model H");
INSERT INTO "car_names" VALUES ("9", "Model I");
INSERT INTO "car_names" VALUES ("10", "Model J");
INSERT INTO "cars_data" VALUES ("1", "2.0", "150", "3200", "7.5");
INSERT INTO "cars_data" VALUES ("2", "3.5", "300", "3500", "6.0");
INSERT INTO "cars_data" VALUES ("3", "1.8", "120", "2800", "8.0");
INSERT INTO "cars_data" VALUES ("4", "4.0", "350", "4000", "5.5");
INSERT INTO "cars_data" VALUES ("5", "2.5", "200", "3300", "7.0");
INSERT INTO "cars_data" VALUES ("6", "3.0", "350", "3600", "5.0");
INSERT INTO "cars_data" VALUES ("7", "1.6", "110", "2700", "8.5");
INSERT INTO "cars_data" VALUES ("8", "2.2", "180", "3100", "7.2");
INSERT INTO "cars_data" VALUES ("9", "3.8", "350", "3900", "5.3");
INSERT INTO "cars_data" VALUES ("10", "2.8", "220", "3400", "6.8");