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 "Addresses" (
"address_id" INT,
"line_1" VARCHAR(255),
PRIMARY KEY ("address_id")
);

CREATE TABLE "Student_Enrolment" (
"student_enrolment_id" INT,
"degree_program_id" INT,
PRIMARY KEY ("student_enrolment_id")
);

CREATE TABLE "Students" (
"student_id" INT,
"first_name" VARCHAR(80),
"middle_name" VARCHAR(40),
"last_name" VARCHAR(40),
"cell_mobile_number" VARCHAR(40),
"email_address" VARCHAR(40),
PRIMARY KEY ("student_id")
);





INSERT INTO "Addresses" VALUES ("1", "123 Main St");
INSERT INTO "Addresses" VALUES ("2", "456 Oak Ave");
INSERT INTO "Addresses" VALUES ("3", "789 Pine Ln");
INSERT INTO "Addresses" VALUES ("4", "101 Elm Rd");
INSERT INTO "Addresses" VALUES ("5", "202 Birch Blvd");
INSERT INTO "Student_Enrolment" VALUES ("1", "101");
INSERT INTO "Student_Enrolment" VALUES ("2", "102");
INSERT INTO "Student_Enrolment" VALUES ("3", "101");
INSERT INTO "Student_Enrolment" VALUES ("4", "103");
INSERT INTO "Student_Enrolment" VALUES ("5", "102");
INSERT INTO "Students" VALUES ("1", "Timmothy", "NULL", "Ward", "555-123-4567", "timmothy.ward@example.com");
INSERT INTO "Students" VALUES ("2", "Alice", "M.", "Smith", "555-987-6543", "alice.smith@example.com");
INSERT INTO "Students" VALUES ("3", "John", "D.", "Doe", "555-111-2222", "john.doe@example.com");
INSERT INTO "Students" VALUES ("4", "Timmothy", "A.", "Johnson", "555-333-4444", "timmothy.johnson@example.com");
INSERT INTO "Students" VALUES ("5", "Emily", "NULL", "Brown", "555-555-6666", "emily.brown@example.com");
INSERT INTO "Students" VALUES ("6", "Timmothy", "P.", "Ward", "555-777-8888", "timmothy.p.ward@example.com");
INSERT INTO "Students" VALUES ("7", "Sarah", "L.", "Davis", "555-999-0000", "sarah.davis@example.com");