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.0", "SpongeBob SquarePants");
INSERT INTO "Cartoon" VALUES ("2.0", "The Simpsons");
INSERT INTO "Cartoon" VALUES ("3.0", "Tom and Jerry");
INSERT INTO "Cartoon" VALUES ("4.0", "Looney Tunes");
INSERT INTO "Cartoon" VALUES ("5.0", "Scooby-Doo, Where Are You!");
INSERT INTO "Cartoon" VALUES ("6.0", "Family Guy");
INSERT INTO "Cartoon" VALUES ("7.0", "South Park");
INSERT INTO "Cartoon" VALUES ("8.0", "Adventure Time");
INSERT INTO "Cartoon" VALUES ("9.0", "Rick and Morty");
INSERT INTO "Cartoon" VALUES ("10.0", "Avatar: The Last Airbender");
INSERT INTO "TV_series" VALUES ("1.0", "Pilot", "2023-01-01", "8.5", "10.2");
INSERT INTO "TV_series" VALUES ("2.0", "The Big Bang", "2023-01-08", "9.0", "11.5");
INSERT INTO "TV_series" VALUES ("3.0", "Lost in Space", "2023-01-15", "7.8", "9.8");
INSERT INTO "TV_series" VALUES ("4.0", "The Mystery of the Missing Sock", "2023-01-22", "8.2", "10.0");
INSERT INTO "TV_series" VALUES ("5.0", "A Day at the Beach", "2023-01-29", "9.5", "12.1");
INSERT INTO "TV_series" VALUES ("6.0", "The Great Escape", "2023-02-05", "7.5", "9.1");
INSERT INTO "TV_series" VALUES ("7.0", "The Unexpected Guest", "2023-02-12", "8.8", "10.7");
INSERT INTO "TV_series" VALUES ("8.0", "Journey to the Center of the Earth", "2023-02-19", "8.0", "9.9");
INSERT INTO "TV_series" VALUES ("9.0", "The Last Stand", "2023-02-26", "9.2", "11.8");
INSERT INTO "TV_series" VALUES ("10.0", "Finale", "2023-03-05", "9.7", "12.5");
INSERT INTO "TV_series" VALUES ("11.0", "The First Step", "2023-03-12", "6.5", "8.0");
INSERT INTO "TV_series" VALUES ("12.0", "The Long Road", "2023-03-19", "7.0", "8.5");
INSERT INTO "TV_series" VALUES ("13.0", "The Turning Point", "2023-03-26", "7.2", "8.7");
INSERT INTO "TV_series" VALUES ("14.0", "The Calm Before the Storm", "2023-04-02", "7.9", "9.3");
INSERT INTO "TV_series" VALUES ("15.0", "The Storm", "2023-04-09", "8.1", "9.6");