-- -----------------------------------------------------
-- Table `openidm`.`objecttypes`
-- -----------------------------------------------------
`objecttype` VARCHAR(255) NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`genericobjects`
-- -----------------------------------------------------
`objecttypes_id` BIGINT UNSIGNED NOT NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`fullobject` MEDIUMTEXT NULL ,
CONSTRAINT `fk_genericobjects_objecttypes`
FOREIGN KEY (`objecttypes_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`genericobjectproperties`
-- -----------------------------------------------------
`genericobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
`propvalue` VARCHAR(2000) NULL ,
CONSTRAINT `fk_genericobjectproperties_genericobjects`
FOREIGN KEY (`genericobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`managedobjects`
-- -----------------------------------------------------
`objecttypes_id` BIGINT UNSIGNED NOT NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`fullobject` MEDIUMTEXT NULL ,
CONSTRAINT `fk_managedobjects_objectypes`
FOREIGN KEY (`objecttypes_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`managedobjectproperties`
-- -----------------------------------------------------
`managedobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
`propvalue` VARCHAR(2000) NULL ,
CONSTRAINT `fk_managedobjectproperties_managedobjects`
FOREIGN KEY (`managedobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`configobjects`
-- -----------------------------------------------------
`objecttypes_id` BIGINT UNSIGNED NOT NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`fullobject` MEDIUMTEXT NULL ,
CONSTRAINT `fk_configobjects_objecttypes`
FOREIGN KEY (`objecttypes_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`configobjectproperties`
-- -----------------------------------------------------
`configobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(255) NULL ,
`propvalue` VARCHAR(2000) NULL ,
CONSTRAINT `fk_configobjectproperties_configobjects`
FOREIGN KEY (`configobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`relationships`
-- -----------------------------------------------------
`objecttypes_id` BIGINT UNSIGNED NOT NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`fullobject` MEDIUMTEXT NULL ,
CONSTRAINT `fk_relationships_objecttypes`
FOREIGN KEY (`objecttypes_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`relationshipproperties`
-- -----------------------------------------------------
`relationships_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(255) NULL ,
`propvalue` VARCHAR(2000) NULL ,
CONSTRAINT `fk_relationshipproperties_relationships`
FOREIGN KEY (`relationships_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`links`
-- -----------------------------------------------------
`objectid` VARCHAR(38) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`linktype` VARCHAR(255) NOT NULL ,
`linkqualifier` VARCHAR(255) NOT NULL ,
`firstid` VARCHAR(255) NOT NULL ,
`secondid` VARCHAR(255) NOT NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`security`
-- -----------------------------------------------------
`objectid` VARCHAR(38) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`storestring` LONGTEXT NOT NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`securitykeys`
-- -----------------------------------------------------
`objectid` VARCHAR(38) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`auditauthentication`
-- -----------------------------------------------------
`objectid` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`userid` VARCHAR(255) NULL ,
`eventname` VARCHAR(50) NULL ,
`result` VARCHAR(255) NULL ,
`principals` TEXT ,
`trackingids` TEXT,
)
-- -----------------------------------------------------
-- Table `openidm`.`auditrecon`
-- -----------------------------------------------------
`objectid` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`eventname` VARCHAR(50) NULL ,
`userid` VARCHAR(255) NULL ,
`activity` VARCHAR(24) NULL ,
`exceptiondetail` TEXT NULL ,
`linkqualifier` VARCHAR(255) NULL ,
`mapping` VARCHAR(511) NULL ,
`messagedetail` MEDIUMTEXT NULL ,
`situation` VARCHAR(24) NULL ,
`sourceobjectid` VARCHAR(511) NULL ,
`status` VARCHAR(20) NULL ,
`targetobjectid` VARCHAR(511) NULL ,
`reconciling` VARCHAR(12) NULL ,
`ambiguoustargetobjectids` MEDIUMTEXT NULL ,
`reconaction` VARCHAR(36) NULL ,
`entrytype` VARCHAR(7) NULL ,
`reconid` VARCHAR(56) NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`auditsync`
-- -----------------------------------------------------
`objectid` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`eventname` VARCHAR(50) NULL ,
`userid` VARCHAR(255) NULL ,
`activity` VARCHAR(24) NULL ,
`exceptiondetail` TEXT NULL ,
`linkqualifier` VARCHAR(255) NULL ,
`mapping` VARCHAR(511) NULL ,
`messagedetail` MEDIUMTEXT NULL ,
`situation` VARCHAR(24) NULL ,
`sourceobjectid` VARCHAR(511) NULL ,
`status` VARCHAR(20) NULL ,
`targetobjectid` VARCHAR(511) NULL ,
)
-- -----------------------------------------------------
-- Table `openidm`.`auditconfig`
-- -----------------------------------------------------
`objectid` VARCHAR(56) NOT NULL ,
`eventname` VARCHAR(255) NULL ,
`transactionid` VARCHAR(255) NOT 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,
)
-- -----------------------------------------------------
-- Table `openidm`.`auditactivity`
-- -----------------------------------------------------
`objectid` VARCHAR(56) NOT NULL ,
`eventname` VARCHAR(255) NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`userid` VARCHAR(255) NULL ,
`runas` VARCHAR(255) NULL ,
`activityobjectid` VARCHAR(255) NULL ,
`operation` VARCHAR(255) NULL ,
`subjectbefore` MEDIUMTEXT NULL ,
`subjectafter` MEDIUMTEXT NULL ,
`changedfields` VARCHAR(255) NULL ,
`subjectrev` VARCHAR(255) NULL ,
`passwordchanged` VARCHAR(5) NULL ,
`status` VARCHAR(20) ,
)
-- -----------------------------------------------------
-- Table `openidm`.`auditaccess`
-- -----------------------------------------------------
`objectid` VARCHAR(56) NOT NULL ,
`eventname` VARCHAR(255) ,
`transactionid` VARCHAR(255) NOT NULL ,
`userid` VARCHAR(255) ,
`trackingids` TEXT,
`server_ip` VARCHAR(40) ,
`server_port` VARCHAR(5) ,
`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` VARCHAR(255) NULL ,
`http_request_method` VARCHAR(255) NULL ,
`http_request_path` VARCHAR(255) NULL ,
`http_request_queryparameters` TEXT NULL ,
`http_request_headers` TEXT NULL ,
`http_request_cookies` TEXT NULL ,
`http_response_headers` TEXT NULL ,
`response_status` VARCHAR(255) NULL ,
`response_statuscode` VARCHAR(255) NULL ,
`response_elapsedtime` VARCHAR(255) NULL ,
`response_elapsedtimeunits` VARCHAR(255) NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`internaluser`
-- -----------------------------------------------------
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`pwd` VARCHAR(510) NULL ,
`roles` VARCHAR(1024) NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`internalrole`
-- -----------------------------------------------------
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`description` VARCHAR(510) NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`schedulerobjects`
-- -----------------------------------------------------
`objecttypes_id` BIGINT UNSIGNED NOT NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`fullobject` MEDIUMTEXT NULL ,
CONSTRAINT `fk_schedulerobjects_objectypes`
FOREIGN KEY (`objecttypes_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`schedulerobjectproperties`
-- -----------------------------------------------------
`schedulerobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
`propvalue` VARCHAR(2000) NULL ,
CONSTRAINT `fk_schedulerobjectproperties_schedulerobjects`
FOREIGN KEY (`schedulerobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`uinotification`
-- -----------------------------------------------------
`objectid` VARCHAR(38) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`notificationType` VARCHAR(255) NOT NULL ,
`createDate` VARCHAR(255) NOT NULL ,
`requester` VARCHAR(255) NULL ,
`receiverId` VARCHAR(38) NOT NULL ,
`requesterId` VARCHAR(38) NULL ,
`notificationSubtype` VARCHAR(255) NULL ,
-- -----------------------------------------------------
-- Table `openidm`.`clusterobjects`
-- -----------------------------------------------------
`objecttypes_id` BIGINT UNSIGNED NOT NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`fullobject` MEDIUMTEXT NULL ,
CONSTRAINT `fk_clusterobjects_objectypes`
FOREIGN KEY (`objecttypes_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`clusterobjectproperties`
-- -----------------------------------------------------
`clusterobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
`propvalue` VARCHAR(2000) NULL ,
CONSTRAINT `fk_clusterobjectproperties_clusterobjects`
FOREIGN KEY (`clusterobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`updateobjects`
-- -----------------------------------------------------
`objecttypes_id` BIGINT UNSIGNED NOT NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`fullobject` MEDIUMTEXT NULL ,
CONSTRAINT `fk_updateobjects_objecttypes`
FOREIGN KEY (`objecttypes_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
-- -----------------------------------------------------
-- Table `openidm`.`updateobjectproperties`
-- -----------------------------------------------------
`updateobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(255) NULL ,
`propvalue` VARCHAR(2000) NULL ,
CONSTRAINT `fk_updateobjectproperties_updateobjects`
FOREIGN KEY (`updateobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
SET SQL_MODE=@OLD_SQL_MODE;
-- -----------------------------------------------------
-- Data for table `openidm`.`internaluser`
-- -----------------------------------------------------
START TRANSACTION;
INSERT INTO `openidm`.`internaluser` (`objectid`, `rev`, `pwd`, `roles`) VALUES ('openidm-admin', '0', 'openidm-admin', '[ { "_ref" : "repo/internal/role/openidm-admin" }, { "_ref" : "repo/internal/role/openidm-authorized" } ]');
INSERT INTO `openidm`.`internaluser` (`objectid`, `rev`, `pwd`, `roles`) VALUES ('anonymous', '0', 'anonymous', '[ { "_ref" : "repo/internal/role/openidm-reg" } ]');
VALUES
('openidm-authorized', '0', 'Basic minimum user'),
('openidm-admin', '0', 'Administrative access'),
('openidm-cert', '0', 'Authenticated via certificate'),
('openidm-tasks-manager', '0', 'Allowed to reassign workflow tasks'),
('openidm-reg', '0', 'Anonymous access');
COMMIT;
-- -------------------------------------------
-- openidm database user
-- ------------------------------------------