CREATE TABLE WizardSave_Store
(
    WizardId 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 ( WizardId,Step ),
    FOREIGN KEY ( WizardId ) REFERENCES WizardSave ( id) ON DELETE CASCADE ON UPDATE RESTRICT

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Wizard save - Store by customer";
