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 "constructors" (
"constructorId" INT,
"name" TEXT,
"url" TEXT,
PRIMARY KEY ("constructorId")
);

CREATE TABLE "drivers" (
"driverId" INT,
"forename" TEXT,
"surname" TEXT,
"url" TEXT,
PRIMARY KEY ("driverId")
);

CREATE TABLE "races" (
"raceId" INT,
"name" TEXT,
PRIMARY KEY ("raceId")
);



INSERT INTO "constructors" VALUES ("1", "Mercedes", "http://en.wikipedia.org/wiki/Mercedes-Benz_in_Formula_One");
INSERT INTO "constructors" VALUES ("2", "Ferrari", "http://en.wikipedia.org/wiki/Scuderia_Ferrari");
INSERT INTO "constructors" VALUES ("3", "Red Bull", "http://en.wikipedia.org/wiki/Red_Bull_Racing");
INSERT INTO "constructors" VALUES ("4", "McLaren", "http://en.wikipedia.org/wiki/McLaren");
INSERT INTO "constructors" VALUES ("5", "Williams", "http://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering");
INSERT INTO "drivers" VALUES ("1", "Lewis", "Hamilton", "http://en.wikipedia.org/wiki/Lewis_Hamilton");
INSERT INTO "drivers" VALUES ("2", "Sebastian", "Vettel", "http://en.wikipedia.org/wiki/Sebastian_Vettel");
INSERT INTO "drivers" VALUES ("3", "Max", "Verstappen", "http://en.wikipedia.org/wiki/Max_Verstappen");
INSERT INTO "drivers" VALUES ("4", "Charles", "Leclerc", "http://en.wikipedia.org/wiki/Charles_Leclerc");
INSERT INTO "drivers" VALUES ("5", "Anthony", "Davidson", "http://en.wikipedia.org/wiki/Anthony_Davidson");
INSERT INTO "drivers" VALUES ("6", "Fernando", "Alonso", "http://en.wikipedia.org/wiki/Fernando_Alonso");
INSERT INTO "drivers" VALUES ("7", "Daniel", "Ricciardo", "http://en.wikipedia.org/wiki/Daniel_Ricciardo");
INSERT INTO "drivers" VALUES ("8", "Valtteri", "Bottas", "http://en.wikipedia.org/wiki/Valtteri_Bottas");
INSERT INTO "drivers" VALUES ("9", "George", "Russell", "http://en.wikipedia.org/wiki/George_Russell");
INSERT INTO "drivers" VALUES ("10", "Lando", "Norris", "http://en.wikipedia.org/wiki/Lando_Norris");
INSERT INTO "races" VALUES ("1", "Bahrain Grand Prix");
INSERT INTO "races" VALUES ("2", "Saudi Arabian Grand Prix");
INSERT INTO "races" VALUES ("3", "Australian Grand Prix");
INSERT INTO "races" VALUES ("4", "Emilia Romagna Grand Prix");
INSERT INTO "races" VALUES ("5", "Miami Grand Prix");