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 "Pets" (
"PetID" INT,
"PetType" VARCHAR(20),
"pet_age" INT,
"weight" FLOAT,
PRIMARY KEY ("PetID")
);

CREATE TABLE "Student" (
"StuID" INT,
"Age" INT,
"Sex" VARCHAR(1),
"Major" INT,
PRIMARY KEY ("StuID")
);





INSERT INTO "Pets" VALUES ("1", "Dog", "3", "15.5");
INSERT INTO "Pets" VALUES ("2", "Cat", "1", "8.2");
INSERT INTO "Pets" VALUES ("3", "Parrot", "1", "0.5");
INSERT INTO "Pets" VALUES ("4", "Rabbit", "2", "2.3");
INSERT INTO "Pets" VALUES ("5", "Hamster", "1", "0.1");
INSERT INTO "Pets" VALUES ("6", "Turtle", "5", "10.0");
INSERT INTO "Pets" VALUES ("7", "Fish", "1", "0.05");
INSERT INTO "Pets" VALUES ("8", "Guinea Pig", "3", "1.2");
INSERT INTO "Pets" VALUES ("9", "Ferret", "4", "2.5");
INSERT INTO "Pets" VALUES ("10", "Snake", "2", "3.0");
INSERT INTO "Student" VALUES ("101", "20", "M", "1");
INSERT INTO "Student" VALUES ("102", "22", "F", "2");
INSERT INTO "Student" VALUES ("103", "19", "M", "3");
INSERT INTO "Student" VALUES ("104", "21", "F", "1");
INSERT INTO "Student" VALUES ("105", "23", "M", "2");
INSERT INTO "Student" VALUES ("106", "20", "F", "3");
INSERT INTO "Student" VALUES ("107", "22", "M", "1");
INSERT INTO "Student" VALUES ("108", "19", "F", "2");
INSERT INTO "Student" VALUES ("109", "21", "M", "3");
INSERT INTO "Student" VALUES ("110", "23", "F", "1");