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

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





INSERT INTO "Cartoon" VALUES ("1", "Adventure Time");
INSERT INTO "Cartoon" VALUES ("2", "Rick and Morty");
INSERT INTO "Cartoon" VALUES ("3", "Gravity Falls");
INSERT INTO "Cartoon" VALUES ("4", "Steven Universe");
INSERT INTO "Cartoon" VALUES ("5", "The Simpsons");
INSERT INTO "TV_Channel" VALUES ("CH001", "USA");
INSERT INTO "TV_Channel" VALUES ("CH002", "USA");
INSERT INTO "TV_Channel" VALUES ("CH003", "USA");
INSERT INTO "TV_Channel" VALUES ("CH004", "Canada");
INSERT INTO "TV_Channel" VALUES ("CH005", "Canada");
INSERT INTO "TV_Channel" VALUES ("CH006", "UK");
INSERT INTO "TV_Channel" VALUES ("CH007", "UK");
INSERT INTO "TV_Channel" VALUES ("CH008", "UK");
INSERT INTO "TV_Channel" VALUES ("CH009", "UK");
INSERT INTO "TV_Channel" VALUES ("CH010", "Australia");
INSERT INTO "TV_Channel" VALUES ("CH011", "Australia");
INSERT INTO "TV_Channel" VALUES ("CH012", "Australia");
INSERT INTO "TV_Channel" VALUES ("CH013", "Australia");
INSERT INTO "TV_Channel" VALUES ("CH014", "Australia");
INSERT INTO "TV_series" VALUES ("101", "2020-01-15", "8.5");
INSERT INTO "TV_series" VALUES ("102", "2019-05-20", "9.0");
INSERT INTO "TV_series" VALUES ("103", "2021-07-10", "7.8");
INSERT INTO "TV_series" VALUES ("104", "2018-11-30", "8.2");
INSERT INTO "TV_series" VALUES ("105", "2022-03-25", "9.1");