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

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

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





INSERT INTO "Cartoon" VALUES ("1", "Adventures of Tim", "Ben Jones", "Alice Smith");
INSERT INTO "Cartoon" VALUES ("2", "Space Explorers", "Brandon Vietti", "John Doe");
INSERT INTO "Cartoon" VALUES ("3", "Mystery Mansion", "Ben Jones", "Mary Johnson");
INSERT INTO "Cartoon" VALUES ("4", "Jungle Quest", "Samantha Lee", "Ben Jones");
INSERT INTO "Cartoon" VALUES ("5", "Ocean Tales", "Brandon Vietti", "David Brown");
INSERT INTO "Cartoon" VALUES ("6", "City Lights", "Michael Green", "Brandon Vietti");
INSERT INTO "Cartoon" VALUES ("7", "Robot Wars", "Ben Jones", "Chris White");
INSERT INTO "Cartoon" VALUES ("8", "Fantasy World", "Laura Black", "Ben Jones");
INSERT INTO "Cartoon" VALUES ("9", "Sky High", "Brandon Vietti", "Anna Blue");
INSERT INTO "Cartoon" VALUES ("10", "Underwater Adventures", "Tom Harris", "Ben Jones");
INSERT INTO "TV_Channel" VALUES ("C1", "Adventures of Tim");
INSERT INTO "TV_Channel" VALUES ("C2", "Space Explorers");
INSERT INTO "TV_Channel" VALUES ("C3", "Mystery Mansion");
INSERT INTO "TV_Channel" VALUES ("C4", "Jungle Quest");
INSERT INTO "TV_Channel" VALUES ("C5", "Ocean Tales");
INSERT INTO "TV_series" VALUES ("101", "Episode 1");
INSERT INTO "TV_series" VALUES ("102", "Episode 2");
INSERT INTO "TV_series" VALUES ("103", "Episode 3");
INSERT INTO "TV_series" VALUES ("104", "Episode 4");
INSERT INTO "TV_series" VALUES ("105", "Episode 5");