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 UNIQUE,
"state_province_county" VARCHAR(255),
"country" VARCHAR(255),
PRIMARY KEY ("address_id")
);

CREATE TABLE "Students" (
"student_id" INT,
"permanent_address_id" INT,
"first_name" VARCHAR(80),
"last_name" VARCHAR(40),
"cell_mobile_number" VARCHAR(40),
"email_address" VARCHAR(40),
PRIMARY KEY ("student_id"),
FOREIGN KEY ("permanent_address_id") REFERENCES "Addresses"("address_id")
);





INSERT INTO "Addresses" VALUES ("1", "Ouest", "Haiti");
INSERT INTO "Addresses" VALUES ("2", "California", "USA");
INSERT INTO "Addresses" VALUES ("3", "Quebec", "Canada");
INSERT INTO "Addresses" VALUES ("4", "Nord", "Haiti");
INSERT INTO "Addresses" VALUES ("5", "Bavaro", "Dominican Republic");
INSERT INTO "Students" VALUES ("101", "1", "Jean", "Pierre", "1234567890", "jean.pierre@example.com");
INSERT INTO "Students" VALUES ("102", "2", "Alice", "Smith", "09700166582", "alice.smith@example.com");
INSERT INTO "Students" VALUES ("103", "3", "Bob", "Johnson", "5551234567", "bob.johnson@example.com");
INSERT INTO "Students" VALUES ("104", "4", "Marie", "Clair", "0987654321", "marie.clair@example.com");
INSERT INTO "Students" VALUES ("105", "5", "Carlos", "Diaz", "09700166582", "carlos.diaz@example.com");
INSERT INTO "Students" VALUES ("106", "2", "Eve", "Adams", "2223334444", "eve.adams@example.com");