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,
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", "Adventures of Tim", "John Smith");
INSERT INTO "Cartoon" VALUES ("2", "Space Explorers", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("3", "Jungle Quest", "John Smith");
INSERT INTO "Cartoon" VALUES ("4", "Ocean Mysteries", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("5", "Mountain Tales", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("6", "City Lights", "John Smith");
INSERT INTO "Cartoon" VALUES ("7", "Desert Winds", "Alice Johnson");
INSERT INTO "Cartoon" VALUES ("8", "Sky High", "Bob Brown");
INSERT INTO "Cartoon" VALUES ("9", "Underwater World", "Jane Doe");
INSERT INTO "Cartoon" VALUES ("10", "Forest Friends", "John Smith");
INSERT INTO "TV_Channel" VALUES ("C1", "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", "Mountain Tales");
INSERT INTO "TV_Channel" VALUES ("C6", "City Lights");
INSERT INTO "TV_Channel" VALUES ("C7", "Desert Winds");
INSERT INTO "TV_Channel" VALUES ("C8", "Sky High");
INSERT INTO "TV_Channel" VALUES ("C9", "Underwater World");
INSERT INTO "TV_Channel" VALUES ("C10", "Forest Friends");
INSERT INTO "TV_series" VALUES ("101", "Episode 1", "2023-01-10");
INSERT INTO "TV_series" VALUES ("102", "Episode 2", "2023-01-17");
INSERT INTO "TV_series" VALUES ("103", "Episode 3", "2023-01-24");
INSERT INTO "TV_series" VALUES ("104", "Episode 4", "2023-01-31");
INSERT INTO "TV_series" VALUES ("105", "Episode 5", "2023-02-07");
INSERT INTO "TV_series" VALUES ("106", "Episode 6", "2023-02-14");
INSERT INTO "TV_series" VALUES ("107", "Episode 7", "2023-02-21");
INSERT INTO "TV_series" VALUES ("108", "Episode 8", "2023-02-28");
INSERT INTO "TV_series" VALUES ("109", "Episode 9", "2023-03-07");
INSERT INTO "TV_series" VALUES ("110", "Episode 10", "2023-03-14");