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,
"Directed_by" TEXT,
"Original_air_date" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "TV_Channel" (
"id" TEXT,
"series_name" TEXT,
PRIMARY KEY ("id")
);

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





INSERT INTO "Cartoon" VALUES ("1", "The Adventures of Tim", "Alice Johnson", "2001-05-10");
INSERT INTO "Cartoon" VALUES ("2", "Space Explorers", "Bob Smith", "1999-11-20");
INSERT INTO "Cartoon" VALUES ("3", "Jungle Quest", "Catherine Lee", "2005-07-15");
INSERT INTO "Cartoon" VALUES ("4", "Ocean Mysteries", "David Kim", "2001-05-10");
INSERT INTO "Cartoon" VALUES ("5", "Robot Wars", "Evelyn Clark", "2010-01-01");
INSERT INTO "Cartoon" VALUES ("6", "Magic Tales", "Frank Moore", "1999-11-20");
INSERT INTO "Cartoon" VALUES ("7", "Sky High", "Grace Hall", "2005-07-15");
INSERT INTO "Cartoon" VALUES ("8", "Dino World", "Hannah Scott", "2015-12-25");
INSERT INTO "Cartoon" VALUES ("9", "City Lights", "Ian Wright", "2010-01-01");
INSERT INTO "Cartoon" VALUES ("10", "Underwater Adventures", "Jane Doe", "2015-12-25");
INSERT INTO "TV_Channel" VALUES ("C1", "The Adventures of Tim");
INSERT INTO "TV_Channel" VALUES ("C2", "Space Explorers");
INSERT INTO "TV_Channel" VALUES ("C3", "Jungle Quest");
INSERT INTO "TV_Channel" VALUES ("C4", "Ocean Mysteries");
INSERT INTO "TV_Channel" VALUES ("C5", "Robot Wars");
INSERT INTO "TV_Channel" VALUES ("C6", "Magic Tales");
INSERT INTO "TV_Channel" VALUES ("C7", "Sky High");
INSERT INTO "TV_Channel" VALUES ("C8", "Dino World");
INSERT INTO "TV_Channel" VALUES ("C9", "City Lights");
INSERT INTO "TV_Channel" VALUES ("C10", "Underwater Adventures");
INSERT INTO "TV_series" VALUES ("101", "Episode 1", "1999-11-20");
INSERT INTO "TV_series" VALUES ("102", "Episode 2", "2001-05-10");
INSERT INTO "TV_series" VALUES ("103", "Episode 3", "2005-07-15");
INSERT INTO "TV_series" VALUES ("104", "Episode 4", "2010-01-01");
INSERT INTO "TV_series" VALUES ("105", "Episode 5", "2015-12-25");
INSERT INTO "TV_series" VALUES ("106", "Episode 6", "2001-05-10");
INSERT INTO "TV_series" VALUES ("107", "Episode 7", "1999-11-20");
INSERT INTO "TV_series" VALUES ("108", "Episode 8", "2015-12-25");
INSERT INTO "TV_series" VALUES ("109", "Episode 9", "2005-07-15");
INSERT INTO "TV_series" VALUES ("110", "Episode 10", "2010-01-01");