mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Ground work for installing and upgrading database schema based upon DB provider (MySQL, PostgresSQL, SQL Server, etc.) Cleaned up legacy cruft, refactored, commented and made simpler for to support additional database providers.
16 lines
634 B
SQL
16 lines
634 B
SQL
/* enterprise edition */
|
|
DROP TABLE IF EXISTS `participant`;
|
|
|
|
CREATE TABLE IF NOT EXISTS `participant` (
|
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
`refid` CHAR(16) NOT NULL COLLATE utf8_bin,
|
|
`orgid` CHAR(16) NOT NULL COLLATE utf8_bin,
|
|
`documentid` CHAR(16) NOT NULL COLLATE utf8_bin,
|
|
`userid` CHAR(16) DEFAULT '' COLLATE utf8_bin,
|
|
`roletype` CHAR(1) NOT NULL DEFAULT 'I' COLLATE utf8_bin,
|
|
`lastviewed` TIMESTAMP NULL,
|
|
`created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
CONSTRAINT pk_id PRIMARY KEY (id),
|
|
INDEX `idx_participant_documentid` (`documentid` ASC))
|
|
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin
|
|
ENGINE = InnoDB;
|