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 "Cartoon" (
"id" FLOAT,
"Title" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "TV_series" (
"id" FLOAT,
"Episode" TEXT,
"Air_Date" TEXT,
"Rating" TEXT,
"Viewers_m" TEXT,
PRIMARY KEY ("id")
);





INSERT INTO "Cartoon" VALUES ("1", "SpongeBob SquarePants");
INSERT INTO "Cartoon" VALUES ("2", "The Simpsons");
INSERT INTO "Cartoon" VALUES ("3", "Tom and Jerry");
INSERT INTO "Cartoon" VALUES ("4", "Looney Tunes");
INSERT INTO "Cartoon" VALUES ("5", "Scooby-Doo, Where Are You!");
INSERT INTO "Cartoon" VALUES ("6", "Family Guy");
INSERT INTO "Cartoon" VALUES ("7", "South Park");
INSERT INTO "Cartoon" VALUES ("8", "Adventure Time");
INSERT INTO "Cartoon" VALUES ("9", "Rick and Morty");
INSERT INTO "Cartoon" VALUES ("10", "Avatar: The Last Airbender");
INSERT INTO "TV_series" VALUES ("1", "Pilot", "2023-01-01", "8.5", "1.2");
INSERT INTO "TV_series" VALUES ("2", "The Big Bang", "2023-01-08", "9.2", "1.5");
INSERT INTO "TV_series" VALUES ("3", "Lost in Space", "2023-01-15", "7.8", "0.9");
INSERT INTO "TV_series" VALUES ("4", "The Return", "2023-01-22", "9.5", "1.8");
INSERT INTO "TV_series" VALUES ("5", "New Beginnings", "2023-01-29", "8.9", "1.3");
INSERT INTO "TV_series" VALUES ("6", "The Chase", "2023-02-05", "7.5", "0.8");
INSERT INTO "TV_series" VALUES ("7", "Final Showdown", "2023-02-12", "9.8", "2.1");
INSERT INTO "TV_series" VALUES ("8", "A Day in the Life", "2023-02-19", "8.0", "1.0");
INSERT INTO "TV_series" VALUES ("9", "The Mystery", "2023-02-26", "9.0", "1.4");
INSERT INTO "TV_series" VALUES ("10", "The Revelation", "2023-03-05", "9.1", "1.6");
INSERT INTO "TV_series" VALUES ("11", "The Calm Before", "2023-03-12", "8.7", "1.1");
INSERT INTO "TV_series" VALUES ("12", "The Storm", "2023-03-19", "9.3", "1.7");