CREATE TABLE Session
(
    id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
    session_str CHAR(32) NOT NULL,
    start_ts BIGINT NOT NULL,
    end_ts BIGINT DEFAULT NULL,
    last_call_ts BIGINT NOT NULL,
    session_data BLOB DEFAULT NULL,
    inProgress TINYINT DEFAULT 1,
    idHash CHAR(32) DEFAULT NULL,
    expires ENUM("yes", "no") DEFAULT "yes",
    PRIMARY KEY ( id ),
    UNIQUE KEY session_str ( session_str )

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Web sessions and some session data.";
