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.0", "Tom and Jerry");
INSERT INTO "Cartoon" VALUES ("2.0", "Looney Tunes");
INSERT INTO "Cartoon" VALUES ("3.0", "Scooby-Doo");
INSERT INTO "Cartoon" VALUES ("4.0", "The Flintstones");
INSERT INTO "Cartoon" VALUES ("5.0", "The Simpsons");
INSERT INTO "Cartoon" VALUES ("6.0", "SpongeBob SquarePants");
INSERT INTO "Cartoon" VALUES ("7.0", "Adventure Time");
INSERT INTO "Cartoon" VALUES ("8.0", "Rick and Morty");
INSERT INTO "Cartoon" VALUES ("9.0", "Family Guy");
INSERT INTO "Cartoon" VALUES ("10.0", "South Park");
INSERT INTO "TV_Channel" VALUES ("CN", "Cartoon Network", "Cartoons");
INSERT INTO "TV_Channel" VALUES ("NICK", "Nickelodeon", "Cartoons");
INSERT INTO "TV_Channel" VALUES ("ADSM", "Adult Swim", "Adult Cartoons");
INSERT INTO "TV_Channel" VALUES ("FOX", "Fox Broadcasting Company", "Animated Sitcoms");
INSERT INTO "TV_Channel" VALUES ("TBS", "TBS", "Syndicated Shows");
INSERT INTO "TV_series" VALUES ("1.0", "The Cat and the Mermouse");
INSERT INTO "TV_series" VALUES ("2.0", "Rabbit Fire");
INSERT INTO "TV_series" VALUES ("3.0", "What a Night for a Knight");
INSERT INTO "TV_series" VALUES ("4.0", "The Hot Piano");
INSERT INTO "TV_series" VALUES ("5.0", "Simpsons Roasting on an Open Fire");
INSERT INTO "TV_series" VALUES ("6.0", "Help Wanted");
INSERT INTO "TV_series" VALUES ("7.0", "Slumber Party Panic");
INSERT INTO "TV_series" VALUES ("8.0", "Pilot");
INSERT INTO "TV_series" VALUES ("9.0", "Death Has a Shadow");
INSERT INTO "TV_series" VALUES ("10.0", "Cartman Gets an Anal Probe");