1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 21:29:42 +02:00
documize/core/database/scripts/mysql/db_00013.sql

17 lines
632 B
MySQL
Raw Normal View History

2017-05-04 12:31:52 +01:00
/* community edition */
DROP TABLE IF EXISTS `userevent`;
CREATE TABLE IF NOT EXISTS `userevent` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`orgid` CHAR(16) NOT NULL COLLATE utf8_bin,
`userid` CHAR(16) NOT NULL COLLATE utf8_bin,
`eventtype` VARCHAR(100) NOT NULL DEFAULT '',
2017-05-05 10:44:52 +01:00
`ip` VARCHAR(39) NOT NULL COLLATE utf8_bin DEFAULT '',
2017-05-04 12:31:52 +01:00
`created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT pk_id PRIMARY KEY (id),
INDEX `idx_userevent_orgid` (`orgid` ASC),
INDEX `idx_userevent_userid` (`userid` ASC),
INDEX `idx_userevent_eventtype` (`eventtype` ASC))
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin
2017-05-04 12:31:52 +01:00
ENGINE = InnoDB;