CREATE TABLE Wizard_Store
(
    Session BIGINT UNSIGNED DEFAULT NULL,
    Wizard VARCHAR(50) DEFAULT NULL,
    Node BIGINT UNSIGNED DEFAULT NULL,
    Zone BIGINT UNSIGNED DEFAULT NULL,
    Step VARCHAR(50) DEFAULT NULL,
    Class VARCHAR(50) DEFAULT NULL,
    data BLOB NOT NULL,
    is_dirty TINYINT DEFAULT NULL,
    dirty TINYINT DEFAULT NULL,
    sortOrder TINYINT UNSIGNED DEFAULT NULL,
    locked TINYINT DEFAULT 0,
    PRIMARY KEY ( Session,Wizard,Step ),
    FOREIGN KEY ( Session ) REFERENCES Session ( id) ON DELETE CASCADE ON UPDATE RESTRICT

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Wizard storage ( session based ) - step storage";
