CREATE TABLE `user_tokens` (
  `id` INTEGER NOT NULL AUTO_INCREMENT UNIQUE,
  `cdate` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `selector` varchar(255) NOT NULL ,
  `validator` varchar(255) NOT NULL ,
  `uname` CHAR(32) NOT NULL,
  `remoteip` varchar(25) NOT NULL ,
  `useragent` varchar(255) NOT NULL ,
  `expiry` datetime NOT NULL ,

  PRIMARY KEY (id) 
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
