mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
event logging
This commit is contained in:
parent
b6c676149a
commit
93ed361705
48 changed files with 861 additions and 853 deletions
15
core/database/scripts/autobuild/db_00013.sql
Normal file
15
core/database/scripts/autobuild/db_00013.sql
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* 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 '',
|
||||
`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 utf8 COLLATE utf8_general_ci
|
||||
ENGINE = InnoDB;
|
Loading…
Add table
Add a link
Reference in a new issue