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

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





INSERT INTO "Pets" VALUES ("1", "Dog", "3", "25.5");
INSERT INTO "Pets" VALUES ("2", "Cat", "1", "5.2");
INSERT INTO "Pets" VALUES ("3", "Bird", "2", "0.8");
INSERT INTO "Pets" VALUES ("4", "Fish", "0", "0.1");
INSERT INTO "Pets" VALUES ("5", "Hamster", "2", "0.2");
INSERT INTO "Pets" VALUES ("6", "Dog", "5", "30.0");
INSERT INTO "Pets" VALUES ("7", "Cat", "4", "6.5");
INSERT INTO "Pets" VALUES ("8", "Rabbit", "1", "2.0");
INSERT INTO "Pets" VALUES ("9", "Snake", "6", "1.5");
INSERT INTO "Pets" VALUES ("10", "Turtle", "10", "10.0");
INSERT INTO "Has_Pet" VALUES ("101", "1");
INSERT INTO "Has_Pet" VALUES ("101", "2");
INSERT INTO "Has_Pet" VALUES ("102", "3");
INSERT INTO "Has_Pet" VALUES ("103", "4");
INSERT INTO "Has_Pet" VALUES ("104", "5");
INSERT INTO "Has_Pet" VALUES ("105", "6");
INSERT INTO "Has_Pet" VALUES ("106", "7");
INSERT INTO "Has_Pet" VALUES ("107", "8");
INSERT INTO "Has_Pet" VALUES ("108", "9");
INSERT INTO "Has_Pet" VALUES ("109", "10");
INSERT INTO "Has_Pet" VALUES ("101", "6");
INSERT INTO "Has_Pet" VALUES ("102", "7");