CREATE TABLE `SharedSearchLinks` (
  `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
  `UUID` VARCHAR(37) NOT NULL,
  `Parameters` TEXT NOT NULL,
  `LastViewed` DATETIME DEFAULT NULL,
  `Views` BIGINT UNSIGNED NOT NULL DEFAULT 0,
  `Creator` BIGINT UNSIGNED NOT NULL DEFAULT 0,
  `Created` DATETIME,
  `LastUpdatedBy` BIGINT UNSIGNED NOT NULL DEFAULT 0,
  `LastUpdated` DATETIME,
  PRIMARY KEY (`id`),
  UNIQUE KEY (`UUID`),
  KEY (`LastViewed`)
);
