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" (
"StuID" INT,
FOREIGN KEY ("StuID") REFERENCES "Student"("StuID")
);

CREATE TABLE "Pets" (
"PetID" INT,
"PetType" VARCHAR(20),
"pet_age" INT,
"weight" FLOAT,
PRIMARY KEY ("PetID")
);

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





INSERT INTO "Student" VALUES ("1", "10");
INSERT INTO "Student" VALUES ("2", "12");
INSERT INTO "Student" VALUES ("3", "11");
INSERT INTO "Student" VALUES ("4", "9");
INSERT INTO "Student" VALUES ("5", "13");
INSERT INTO "Student" VALUES ("6", "10");
INSERT INTO "Student" VALUES ("7", "11");
INSERT INTO "Student" VALUES ("8", "12");
INSERT INTO "Student" VALUES ("9", "9");
INSERT INTO "Student" VALUES ("10", "10");
INSERT INTO "Pets" VALUES ("1", "Dog", "3", "25.5");
INSERT INTO "Pets" VALUES ("2", "Cat", "2", "8.2");
INSERT INTO "Pets" VALUES ("3", "Dog", "5", "30.1");
INSERT INTO "Pets" VALUES ("4", "Fish", "1", "0.1");
INSERT INTO "Pets" VALUES ("5", "Cat", "4", "9.5");
INSERT INTO "Pets" VALUES ("6", "Dog", "2", "22.0");
INSERT INTO "Pets" VALUES ("7", "Bird", "1", "0.5");
INSERT INTO "Pets" VALUES ("8", "Cat", "3", "7.8");
INSERT INTO "Pets" VALUES ("9", "Dog", "6", "35.0");
INSERT INTO "Pets" VALUES ("10", "Fish", "2", "0.2");
INSERT INTO "Pets" VALUES ("11", "Bird", "3", "0.6");
INSERT INTO "Pets" VALUES ("12", "Cat", "1", "6.5");
INSERT INTO "Pets" VALUES ("13", "Dog", "4", "28.0");
INSERT INTO "Pets" VALUES ("14", "Fish", "1", "0.15");
INSERT INTO "Pets" VALUES ("15", "Bird", "2", "0.4");
INSERT INTO "Pets" VALUES ("16", "Dog", "7", "40.0");
INSERT INTO "Pets" VALUES ("17", "Cat", "5", "10.0");
INSERT INTO "Pets" VALUES ("18", "Fish", "3", "0.3");
INSERT INTO "Pets" VALUES ("19", "Bird", "4", "0.7");
INSERT INTO "Pets" VALUES ("20", "Dog", "1", "15.0");
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");