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 "driverStandings" (
"driverStandingsId" INT,
"points" FLOAT,
PRIMARY KEY ("driverStandingsId")
);

CREATE TABLE "constructors" (
"constructorId" INT,
"nationality" TEXT,
PRIMARY KEY ("constructorId")
);

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

CREATE TABLE "results" (
"resultId" INT,
"position" INT,
PRIMARY KEY ("resultId")
);



INSERT INTO "driverStandings" VALUES ("1", "150.5");
INSERT INTO "driverStandings" VALUES ("2", "98.0");
INSERT INTO "driverStandings" VALUES ("3", "120.75");
INSERT INTO "driverStandings" VALUES ("4", "75.25");
INSERT INTO "driverStandings" VALUES ("5", "60.0");
INSERT INTO "constructors" VALUES ("1", "German");
INSERT INTO "constructors" VALUES ("2", "British");
INSERT INTO "constructors" VALUES ("3", "Italian");
INSERT INTO "constructors" VALUES ("4", "French");
INSERT INTO "drivers" VALUES ("1", "Michael", "Schumacher", "1969-01-03", "German", "https://en.wikipedia.org/wiki/Michael_Schumacher");
INSERT INTO "drivers" VALUES ("2", "Sebastian", "Vettel", "1987-07-03", "German", "https://en.wikipedia.org/wiki/Sebastian_Vettel");
INSERT INTO "drivers" VALUES ("3", "Nick", "Heidfeld", "1977-05-10", "German", "https://en.wikipedia.org/wiki/Nick_Heidfeld");
INSERT INTO "drivers" VALUES ("4", "Ralf", "Schumacher", "1975-06-30", "German", "https://en.wikipedia.org/wiki/Ralf_Schumacher");
INSERT INTO "drivers" VALUES ("5", "Timo", "Glock", "1982-03-18", "German", "https://en.wikipedia.org/wiki/Timo_Glock");
INSERT INTO "drivers" VALUES ("6", "Nico", "Rosberg", "1985-06-27", "German", "https://en.wikipedia.org/wiki/Nico_Rosberg");
INSERT INTO "drivers" VALUES ("7", "Jochen", "Mass", "1946-09-30", "German", "https://en.wikipedia.org/wiki/Jochen_Mass");
INSERT INTO "drivers" VALUES ("8", "Andreas", "Seidl", "1971-12-06", "German", "NULL");
INSERT INTO "drivers" VALUES ("9", "Stefan", "Bellof", "1957-10-20", "German", "https://en.wikipedia.org/wiki/Stefan_Bellof");
INSERT INTO "drivers" VALUES ("10", "Pascal", "Wehrlein", "1994-10-18", "German", "https://en.wikipedia.org/wiki/Pascal_Wehrlein");
INSERT INTO "drivers" VALUES ("11", "Bernd", "Mayländer", "1971-01-29", "German", "");
INSERT INTO "drivers" VALUES ("12", "Adrian", "Sutil", "1983-01-11", "German", "https://en.wikipedia.org/wiki/Adrian_Sutil");
INSERT INTO "drivers" VALUES ("13", "Sebastian", "Buemi", "1988-10-31", "Swiss", "https://en.wikipedia.org/wiki/Sebastien_Buemi");
INSERT INTO "results" VALUES ("1", "1");
INSERT INTO "results" VALUES ("2", "2");
INSERT INTO "results" VALUES ("3", "3");
INSERT INTO "results" VALUES ("4", "4");
INSERT INTO "results" VALUES ("5", "5");