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,
"Channel" TEXT,
PRIMARY KEY ("id"),
FOREIGN KEY ("Channel") REFERENCES "TV_Channel"("id")
);

CREATE TABLE "TV_Channel" (
"id" TEXT UNIQUE,
"series_name" TEXT,
"Country" TEXT,
"Language" TEXT,
PRIMARY KEY ("id")
);





INSERT INTO "TV_Channel" VALUES ("CNN", "CNN News", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("BBC", "BBC News", "UK", "English");
INSERT INTO "TV_Channel" VALUES ("FOX", "FOX News", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("CCTV", "CCTV News", "China", "Mandarin");
INSERT INTO "TV_Channel" VALUES ("NHK", "NHK News", "Japan", "Japanese");
INSERT INTO "TV_Channel" VALUES ("ABC", "ABC News", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("ITV", "ITV News", "UK", "English");
INSERT INTO "TV_Channel" VALUES ("ZDF", "ZDF News", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("TF1", "TF1 News", "France", "French");
INSERT INTO "TV_Channel" VALUES ("RTL", "RTL News", "Germany", "German");
INSERT INTO "Cartoon" VALUES ("1.0", "CNN");
INSERT INTO "Cartoon" VALUES ("2.0", "BBC");
INSERT INTO "Cartoon" VALUES ("3.0", "FOX");
INSERT INTO "Cartoon" VALUES ("4.0", "CCTV");
INSERT INTO "Cartoon" VALUES ("5.0", "NHK");
INSERT INTO "Cartoon" VALUES ("6.0", "ABC");
INSERT INTO "Cartoon" VALUES ("7.0", "ITV");
INSERT INTO "Cartoon" VALUES ("8.0", "ZDF");
INSERT INTO "Cartoon" VALUES ("9.0", "TF1");
INSERT INTO "Cartoon" VALUES ("10.0", "RTL");
INSERT INTO "Cartoon" VALUES ("11.0", "CNN");
INSERT INTO "Cartoon" VALUES ("12.0", "FOX");
INSERT INTO "Cartoon" VALUES ("13.0", "ABC");
INSERT INTO "Cartoon" VALUES ("14.0", "BBC");
INSERT INTO "Cartoon" VALUES ("15.0", "ZDF");