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 "Has_Pet" (
"PetID" INT,
FOREIGN KEY ("PetID") REFERENCES "Pets"("PetID")
);

CREATE TABLE "Pets" (
"PetID" INT UNIQUE,
"pet_age" INT,
"weight" FLOAT,
PRIMARY KEY ("PetID")
);

CREATE TABLE "Student" (
"StuID" INT UNIQUE,
PRIMARY KEY ("StuID")
);





INSERT INTO "Pets" VALUES ("1", "2", "5.5");
INSERT INTO "Pets" VALUES ("2", "5", "12.3");
INSERT INTO "Pets" VALUES ("3", "1", "8.0");
INSERT INTO "Pets" VALUES ("4", "7", "15.1");
INSERT INTO "Pets" VALUES ("5", "3", "9.9");
INSERT INTO "Pets" VALUES ("6", "4", "10.0");
INSERT INTO "Pets" VALUES ("7", "6", "11.2");
INSERT INTO "Pets" VALUES ("8", "2", "7.8");
INSERT INTO "Pets" VALUES ("9", "8", "20.5");
INSERT INTO "Pets" VALUES ("10", "1", "6.7");
INSERT INTO "Has_Pet" VALUES ("1");
INSERT INTO "Has_Pet" VALUES ("2");
INSERT INTO "Has_Pet" VALUES ("3");
INSERT INTO "Has_Pet" VALUES ("4");
INSERT INTO "Has_Pet" VALUES ("5");
INSERT INTO "Has_Pet" VALUES ("6");
INSERT INTO "Has_Pet" VALUES ("7");
INSERT INTO "Has_Pet" VALUES ("8");
INSERT INTO "Has_Pet" VALUES ("9");
INSERT INTO "Has_Pet" VALUES ("10");
INSERT INTO "Student" VALUES ("101");
INSERT INTO "Student" VALUES ("102");
INSERT INTO "Student" VALUES ("103");
INSERT INTO "Student" VALUES ("104");
INSERT INTO "Student" VALUES ("105");