CREATE TABLE Champ (
    id INT PRIMARY KEY AUTO_INCREMENT,
    code VARCHAR(20)
);

CREATE TABLE Module (
    id INT PRIMARY KEY AUTO_INCREMENT,
    champId INT REFERENCES Champ(id),
    code VARCHAR(20)
);

INSERT INTO Champ(code) VALUES ("APL");
INSERT INTO Champ(code) VALUES ("WIM");

INSERT INTO Module(champId, code) VALUES (1, "M1102");
INSERT INTO Module(champId, code) VALUES (1, "M1103");
INSERT INTO Module(champId, code) VALUES (1, "M3103");
INSERT INTO Module(champId, code) VALUES (2, "M1105");
INSERT INTO Module(champId, code) VALUES (2, "M3104");
INSERT INTO Module(champId, code) VALUES (2, "M4103C");
INSERT INTO Module(champId, code) VALUES (2, "M4104C");