CREATE TABLE `sessions` (
  `session_pkey` INT NOT NULL AUTO_INCREMENT,
  `session_id` VARCHAR(32) NOT NULL,
  `user_id` INT NULL DEFAULT 0,
  `session_expiry` INT NULL,
  PRIMARY KEY (`session_pkey`),
  UNIQUE INDEX `session_id_UNIQUE` (`session_id` ASC)) ENGINE=InnoDB DEFAULT CHARSET=latin1;