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,
"nationality" TEXT,
PRIMARY KEY ("constructorId")
);

CREATE TABLE "drivers" (
"driverId" INT,
"driverRef" TEXT,
"surname" TEXT,
"nationality" TEXT,
PRIMARY KEY ("driverId")
);



INSERT INTO "constructors" VALUES ("1", "Ferrari", "italian");
INSERT INTO "constructors" VALUES ("2", "Mercedes", "german");
INSERT INTO "constructors" VALUES ("3", "Red Bull", "austrian");
INSERT INTO "constructors" VALUES ("4", "McLaren", "british");
INSERT INTO "constructors" VALUES ("5", "Alfa Romeo", "italian");
INSERT INTO "drivers" VALUES ("101", "leclerc", "Leclerc", "monegasque");
INSERT INTO "drivers" VALUES ("102", "sainz", "Sainz", "spanish");
INSERT INTO "drivers" VALUES ("103", "alonso", "Alonso", "spanish");
INSERT INTO "drivers" VALUES ("104", "vettel", "Vettel", "german");
INSERT INTO "drivers" VALUES ("105", "raikkonen", "Raikkonen", "finnish");
INSERT INTO "drivers" VALUES ("106", "giovinazzi", "Giovinazzi", "italian");
INSERT INTO "drivers" VALUES ("107", "ferrari", "Ferrari", "italian");
INSERT INTO "drivers" VALUES ("108", "bianchi", "Bianchi", "italian");
INSERT INTO "drivers" VALUES ("109", "verstappen", "Verstappen", "dutch");
INSERT INTO "drivers" VALUES ("110", "hamilton", "Hamilton", "british");