CREATE TABLE Role2Person_Allowed_Temp
(
    SessionId BIGINT UNSIGNED NOT NULL,
    Person BIGINT UNSIGNED NOT NULL,
    Role BIGINT UNSIGNED NOT NULL,
    Zone BIGINT UNSIGNED DEFAULT NULL,
    sort_order TINYINT DEFAULT NULL,
    PRIMARY KEY ( Person,Role ),
    UNIQUE KEY ( SessionId ),
    FOREIGN KEY ( SessionId ) REFERENCES Session ( id) ON DELETE CASCADE ON UPDATE RESTRICT

) ENGINE=INNODB CHARSET=UTF8 COMMENT="In use roles 2 person";
