CREATE TABLE `users` (
  `id` INTEGER NOT NULL AUTO_INCREMENT UNIQUE,
  `name` varchar(64) NOT NULL ,
  `email` varchar(128) NOT NULL ,
  `uname` CHAR(32) NOT NULL,
  `upass` varchar(65) NOT NULL ,
  `cdate` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `active` boolean DEFAULT 0,
  `expired` boolean DEFAULT 1,
  `wrongpasscount` smallint DEFAULT 0,
  `roles` CHAR(36) NOT NULL,

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