/* enterprise edition */
DROP TABLE IF EXISTS `share`;

CREATE TABLE IF NOT EXISTS `share` (
	`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
	`orgid` CHAR(16) NOT NULL COLLATE utf8_bin,
	`documentid` CHAR(16) NOT NULL COLLATE utf8_bin,
	`userid` CHAR(16) DEFAULT '' COLLATE utf8_bin,
	`email` VARCHAR(250) NOT NULL DEFAULT '',
	`message` VARCHAR(500) NOT NULL DEFAULT '',
	`viewed` VARCHAR(500) NOT NULL DEFAULT '',
	`secret` VARCHAR(200) NOT NULL DEFAULT '',
	`expires` CHAR(16) DEFAULT '' COLLATE utf8_bin,
	`active` BOOL NOT NULL DEFAULT 1,
	`created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
	CONSTRAINT pk_id PRIMARY KEY (id))
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin
ENGINE =  InnoDB;
