CREATE TABLE Context
(
    id BIGINT UNSIGNED NOT NULL,
    Module VARCHAR(50) DEFAULT NULL,
    Node BIGINT UNSIGNED NOT NULL,
    PRIMARY KEY ( id,Module ),
    FOREIGN KEY ( id ) REFERENCES Session ( id) ON DELETE CASCADE ON UPDATE RESTRICT,
    FOREIGN KEY ( Node ) REFERENCES nodes ( id) ON DELETE CASCADE ON UPDATE CASCADE

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Context for the user associated with a session";
