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

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





INSERT INTO "Cartoon" VALUES ("1", "Tom and Jerry");
INSERT INTO "Cartoon" VALUES ("2", "Looney Tunes");
INSERT INTO "Cartoon" VALUES ("3", "Scooby-Doo");
INSERT INTO "Cartoon" VALUES ("4", "The Flintstones");
INSERT INTO "Cartoon" VALUES ("5", "The Simpsons");
INSERT INTO "Cartoon" VALUES ("6", "SpongeBob SquarePants");
INSERT INTO "Cartoon" VALUES ("7", "Family Guy");
INSERT INTO "Cartoon" VALUES ("8", "Rick and Morty");
INSERT INTO "Cartoon" VALUES ("9", "Adventure Time");
INSERT INTO "Cartoon" VALUES ("10", "Gravity Falls");
INSERT INTO "TV_Channel" VALUES ("CN", "Cartoon Network", "Cartoons");
INSERT INTO "TV_Channel" VALUES ("NICK", "Nickelodeon", "Cartoons");
INSERT INTO "TV_Channel" VALUES ("FOX", "Fox Broadcasting Company", "Animated Sitcoms");
INSERT INTO "TV_Channel" VALUES ("ADULT", "Adult Swim", "Adult Animation");
INSERT INTO "TV_Channel" VALUES ("DISNEY", "Disney Channel", "Kids Shows");
INSERT INTO "TV_Channel" VALUES ("WB", "Warner Bros.", "Classic Cartoons");
INSERT INTO "TV_series" VALUES ("101", "The Cat Concerto");
INSERT INTO "TV_series" VALUES ("102", "Rabbit Seasoning");
INSERT INTO "TV_series" VALUES ("103", "What a Night for a Knight");
INSERT INTO "TV_series" VALUES ("104", "The Hot Piano");
INSERT INTO "TV_series" VALUES ("105", "Simpsons Roasting on an Open Fire");
INSERT INTO "TV_series" VALUES ("106", "Help Wanted");
INSERT INTO "TV_series" VALUES ("107", "Death Has a Shadow");
INSERT INTO "TV_series" VALUES ("108", "Pilot");
INSERT INTO "TV_series" VALUES ("109", "Slumber Party Panic");
INSERT INTO "TV_series" VALUES ("110", "Tourist Trapped");