-- -----------------------------------------------------
-- The contents of this file are subject to the terms of the Common Development and
-- Distribution License (the License). You may not use this file except in compliance with the
-- License.
--
-- You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
-- specific language governing permission and limitations under the License.
--
-- When distributing Covered Software, include this CDDL Header Notice in each file and include
-- the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
-- Header, with the fields enclosed by brackets [] replaced by your own identifying
-- information: "Portions copyright [year] [name of copyright owner]".
--
-- Copyright 2016 ForgeRock AS.
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Table `audit`.`am_auditauthentication`
-- -----------------------------------------------------
`id` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NULL ,
`eventname` VARCHAR(50) NULL ,
`userid` VARCHAR(255) NULL ,
`result` VARCHAR(255) NULL ,
`principals` MEDIUMTEXT ,
`context` MEDIUMTEXT ,
`entries` MEDIUMTEXT ,
`component` VARCHAR(50) NULL ,
`realm` VARCHAR(255) NULL ,
)
-- -----------------------------------------------------
-- Table `audit`.`am_auditactivity`
-- -----------------------------------------------------
`id` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NULL ,
`eventname` VARCHAR(255) NULL ,
`userid` VARCHAR(255) NULL ,
`runas` VARCHAR(255) NULL ,
`objectid` VARCHAR(255) NULL ,
`operation` VARCHAR(255) NULL ,
`beforeObject` MEDIUMTEXT NULL ,
`afterObject` MEDIUMTEXT NULL ,
`changedfields` VARCHAR(255) NULL ,
`rev` VARCHAR(255) NULL ,
`component` VARCHAR(50) NULL ,
`realm` VARCHAR(255) NULL ,
)
-- -----------------------------------------------------
-- Table `audit`.`am_auditaccess`
-- -----------------------------------------------------
`id` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NULL ,
`eventname` VARCHAR(255) ,
`userid` VARCHAR(255) NULL ,
`server_ip` VARCHAR(40) ,
`server_port` VARCHAR(5) ,
`client_host` VARCHAR(255) ,
`client_ip` VARCHAR(40) ,
`client_port` VARCHAR(5) ,
`request_protocol` VARCHAR(255) NULL ,
`request_operation` VARCHAR(255) NULL ,
`request_detail` TEXT NULL ,
`http_request_secure` BOOLEAN NULL ,
`http_request_method` VARCHAR(7) NULL ,
`http_request_path` VARCHAR(255) NULL ,
`http_request_queryparameters` MEDIUMTEXT NULL ,
`http_request_headers` MEDIUMTEXT NULL ,
`http_request_cookies` MEDIUMTEXT NULL ,
`http_response_headers` MEDIUMTEXT NULL ,
`response_status` VARCHAR(10) NULL ,
`response_statuscode` VARCHAR(255) NULL ,
`response_elapsedtime` VARCHAR(255) NULL ,
`response_elapsedtimeunits` VARCHAR(255) NULL ,
`component` VARCHAR(50) NULL ,
`realm` VARCHAR(255) NULL ,
)
-- -----------------------------------------------------
-- Table `audit`.`am_auditconfig`
-- -----------------------------------------------------
`id` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NULL ,
`eventname` VARCHAR(255) NULL ,
`userid` VARCHAR(255) NULL ,
`runas` VARCHAR(255) NULL ,
`configobjectid` VARCHAR(255) NULL ,
`operation` VARCHAR(255) NULL ,
`beforeObject` MEDIUMTEXT NULL ,
`afterObject` MEDIUMTEXT NULL ,
`changedfields` VARCHAR(255) NULL ,
`rev` VARCHAR(255) NULL,
`component` VARCHAR(50) NULL ,
`realm` VARCHAR(255) NULL ,
)
SET SQL_MODE=@OLD_SQL_MODE;
-- -------------------------------------------
-- audit database user
-- ------------------------------------------