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", "Space Adventures", "Ben Jones", "Alice Smith");
INSERT INTO "Cartoon" VALUES ("2", "Jungle Quest", "Brandon Vietti", "Mark Johnson");
INSERT INTO "Cartoon" VALUES ("3", "Ocean Mysteries", "Ben Jones", "Samantha Lee");
INSERT INTO "Cartoon" VALUES ("4", "Mountain Tales", "Brandon Vietti", "David Kim");
INSERT INTO "Cartoon" VALUES ("5", "City Lights", "Anna Brown", "Ben Jones");
INSERT INTO "Cartoon" VALUES ("6", "Desert Storm", "Clara White", "Brandon Vietti");
INSERT INTO "Cartoon" VALUES ("7", "Space Adventures: The Return", "Ben Jones", "Alice Smith");
INSERT INTO "Cartoon" VALUES ("8", "Jungle Quest: Lost Temple", "Brandon Vietti", "Mark Johnson");
INSERT INTO "Cartoon" VALUES ("9", "Ocean Mysteries: Deep Dive", "Ben Jones", "Samantha Lee");
INSERT INTO "Cartoon" VALUES ("10", "Mountain Tales: Snowfall", "Brandon Vietti", "David Kim");
INSERT INTO "Cartoon" VALUES ("11", "Urban Legends", "Michael Green", "Sarah Connor");
INSERT INTO "Cartoon" VALUES ("12", "Space Adventures", "Ben Jones & Brandon Vietti", "Alice Smith & Mark Johnson");
INSERT INTO "Cartoon" VALUES ("13", "Jungle Quest", "Ben Jones", "Mark Johnson");
INSERT INTO "Cartoon" VALUES ("14", "City Lights", "Brandon Vietti", "Anna Brown");
INSERT INTO "Cartoon" VALUES ("15", "Desert Storm", "Clara White", "Brandon Vietti");
INSERT INTO "TV_Channel" VALUES ("C1", "Space Adventures");
INSERT INTO "TV_Channel" VALUES ("C2", "Jungle Quest");
INSERT INTO "TV_Channel" VALUES ("C3", "Ocean Mysteries");
INSERT INTO "TV_Channel" VALUES ("C4", "Mountain Tales");
INSERT INTO "TV_Channel" VALUES ("C5", "City Lights");
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");