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 ("ITV", "ITV Channel", "UK", "English");
INSERT INTO "TV_Channel" VALUES ("TF1", "TF1 Channel", "France", "French");
INSERT INTO "TV_Channel" VALUES ("M6", "M6 Channel", "France", "French");
INSERT INTO "TV_Channel" VALUES ("FOX", "FOX News", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("NBC", "NBC Channel", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("ABC", "ABC Channel", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("ZDF", "ZDF Channel", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("ARD", "ARD Channel", "Germany", "German");
INSERT INTO "Cartoon" VALUES ("1.0", "CNN");
INSERT INTO "Cartoon" VALUES ("2.0", "BBC");
INSERT INTO "Cartoon" VALUES ("3.0", "ITV");
INSERT INTO "Cartoon" VALUES ("4.0", "TF1");
INSERT INTO "Cartoon" VALUES ("5.0", "M6");
INSERT INTO "Cartoon" VALUES ("6.0", "FOX");
INSERT INTO "Cartoon" VALUES ("7.0", "NBC");
INSERT INTO "Cartoon" VALUES ("8.0", "ABC");
INSERT INTO "Cartoon" VALUES ("9.0", "ZDF");
INSERT INTO "Cartoon" VALUES ("10.0", "ARD");