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 ("C001", "Channel 1 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C002", "Channel 2 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C003", "Channel 3 Series", "USA", "Spanish");
INSERT INTO "TV_Channel" VALUES ("C004", "Channel 4 Series", "Canada", "English");
INSERT INTO "TV_Channel" VALUES ("C005", "Channel 5 Series", "Canada", "French");
INSERT INTO "TV_Channel" VALUES ("C006", "Channel 6 Series", "UK", "English");
INSERT INTO "TV_Channel" VALUES ("C007", "Channel 7 Series", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("C008", "Channel 8 Series", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("C009", "Channel 9 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C010", "Channel 10 Series", "USA", "Spanish");
INSERT INTO "TV_Channel" VALUES ("C011", "Channel 11 Series", "Canada", "English");
INSERT INTO "TV_Channel" VALUES ("C012", "Channel 12 Series", "UK", "English");
INSERT INTO "TV_Channel" VALUES ("C013", "Channel 13 Series", "France", "French");
INSERT INTO "TV_Channel" VALUES ("C014", "Channel 14 Series", "France", "French");
INSERT INTO "TV_Channel" VALUES ("C015", "Channel 15 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C016", "Channel 16 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C017", "Channel 17 Series", "USA", "Spanish");
INSERT INTO "TV_Channel" VALUES ("C018", "Channel 18 Series", "Canada", "English");
INSERT INTO "TV_Channel" VALUES ("C019", "Channel 19 Series", "UK", "English");
INSERT INTO "TV_Channel" VALUES ("C020", "Channel 20 Series", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("C021", "Channel 21 Series", "France", "French");
INSERT INTO "TV_Channel" VALUES ("C022", "Channel 22 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C023", "Channel 23 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C024", "Channel 24 Series", "USA", "Spanish");
INSERT INTO "TV_Channel" VALUES ("C025", "Channel 25 Series", "Canada", "English");
INSERT INTO "TV_Channel" VALUES ("C026", "Channel 26 Series", "UK", "English");
INSERT INTO "TV_Channel" VALUES ("C027", "Channel 27 Series", "Germany", "German");
INSERT INTO "TV_Channel" VALUES ("C028", "Channel 28 Series", "France", "French");
INSERT INTO "TV_Channel" VALUES ("C029", "Channel 29 Series", "USA", "English");
INSERT INTO "TV_Channel" VALUES ("C030", "Channel 30 Series", "USA", "English");
INSERT INTO "Cartoon" VALUES ("1.0", "C001");
INSERT INTO "Cartoon" VALUES ("2.0", "C002");
INSERT INTO "Cartoon" VALUES ("3.0", "C004");
INSERT INTO "Cartoon" VALUES ("4.0", "C006");
INSERT INTO "Cartoon" VALUES ("5.0", "C007");
INSERT INTO "Cartoon" VALUES ("6.0", "C009");
INSERT INTO "Cartoon" VALUES ("7.0", "C011");
INSERT INTO "Cartoon" VALUES ("8.0", "C013");
INSERT INTO "Cartoon" VALUES ("9.0", "C015");
INSERT INTO "Cartoon" VALUES ("10.0", "C017");
INSERT INTO "Cartoon" VALUES ("11.0", "C019");
INSERT INTO "Cartoon" VALUES ("12.0", "C021");
INSERT INTO "Cartoon" VALUES ("13.0", "C023");
INSERT INTO "Cartoon" VALUES ("14.0", "C025");
INSERT INTO "Cartoon" VALUES ("15.0", "C027");
INSERT INTO "Cartoon" VALUES ("16.0", "C029");