`objecttype` VARCHAR(255) NULL ,
`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) ;
`genericobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
CONSTRAINT `fk_genericobjectproperties_genericobjects`
FOREIGN KEY (`genericobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_genericobjectproperties_propkey` ON `openidm`.`genericobjectproperties` (`propkey` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_genericobjectproperties_propvalue` ON `openidm`.`genericobjectproperties` (`propvalue` ASC);
`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);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_managedobjects_objectypes` ON `openidm`.`managedobjects` (`objecttypes_id` ASC) ;
`managedobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
CONSTRAINT `fk_managedobjectproperties_managedobjects`
FOREIGN KEY (`managedobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_managedobjectproperties_managedobjects` ON `openidm`.`managedobjectproperties` (`managedobjects_id` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_managedobjectproperties_propkey` ON `openidm`.`managedobjectproperties` (`propkey` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_managedobjectproperties_propvalue` ON `openidm`.`managedobjectproperties` (`propvalue` ASC);
`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);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_configobjects_objecttypes` ON `openidm`.`configobjects`(`objecttypes_id` ASC);
`configobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(255) NULL ,
CONSTRAINT `fk_configobjectproperties_configobjects`
FOREIGN KEY (`configobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_configobjectproperties_configobjects` ON `openidm`.`configobjectproperties`(`configobjects_id` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_configobjectproperties_propkey` ON `openidm`.`configobjectproperties`(`propkey` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_configobjectproperties_propvalue` ON `openidm`.`configobjectproperties`(`propvalue` ASC);
`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);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_relationships_objecttypes` ON `openidm`.`relationships`(`objecttypes_id` ASC);
`relationships_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(255) NULL ,
CONSTRAINT `fk_relationshipproperties_relationships`
FOREIGN KEY (`relationships_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_relationshipproperties_relationships` ON `openidm`.`relationshipproperties`(`relationships_id` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_relationshipproperties_propkey` ON `openidm`.`relationshipproperties`(`propkey` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_relationshipproperties_propvalue` ON `openidm`.`relationshipproperties`(`propvalue` ASC);
`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 ,
`objectid` VARCHAR(38) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`storestring` TEXT NULL ,
`objectid` VARCHAR(38) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`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,
`objectid` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`eventname` VARCHAR(50) NULL ,
`userid` VARCHAR(255) NULL ,
`trackingids` TEXT,
`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 ,
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditrecon_transactionid` ON `openidm`.`auditrecon` (`transactionid` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditrecon_targetobjectid` ON `openidm`.`auditrecon`(`targetobjectid` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditrecon_sourceobjectid` ON `openidm`.`auditrecon`(`sourceobjectid` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditrecon_activitydate` ON `openidm`.`auditrecon`(`activitydate` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditrecon_entrytype` ON `openidm`.`auditrecon`(`entrytype` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditrecon_situation` ON `openidm`.`auditrecon`(`situation` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditrecon_status` ON `openidm`.`auditrecon`(`status` ASC);
`objectid` VARCHAR(56) NOT NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`eventname` VARCHAR(50) NULL ,
`userid` VARCHAR(255) NULL ,
`trackingids` TEXT,
`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 ,
`objectid` VARCHAR(56) NOT NULL ,
`eventname` VARCHAR(255) NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`userid` VARCHAR(255) NULL ,
`trackingids` TEXT,
`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 ,
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditconfig_transactionid` ON `openidm`.`auditconfig`(`transactionid` ASC);
`objectid` VARCHAR(56) NOT NULL ,
`eventname` VARCHAR(255) NULL ,
`transactionid` VARCHAR(255) NOT NULL ,
`userid` VARCHAR(255) NULL ,
`trackingids` TEXT,
`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) ,
CREATE INDEX IF NOT EXISTS `openidm`.`idx_auditactivity_transactionid` ON `openidm`.`auditactivity`(`transactionid` ASC);
`objectid` VARCHAR(56) NOT NULL ,
`eventname` VARCHAR(255) ,
`transactionid` VARCHAR(255) NOT NULL ,
`userid` VARCHAR(255) NULL ,
`trackingids` TEXT NULL ,
`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 ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`pwd` VARCHAR(510) NULL ,
`roles` VARCHAR(1024) NULL ,
`objectid` VARCHAR(255) NOT NULL ,
`rev` VARCHAR(38) NOT NULL ,
`description` VARCHAR(510) NULL,
`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);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_schedulerobjects_objectypes` ON `openidm`.`schedulerobjects` (`objecttypes_id` ASC);
`schedulerobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
CONSTRAINT `fk_schedulerobjectproperties_schedulerobjects`
FOREIGN KEY (`schedulerobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_schedulerobjectproperties_schedulerobjects` ON `openidm`.`schedulerobjectproperties`(`schedulerobjects_id` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_schedulerobjectproperties_propkey` ON `openidm`.`schedulerobjectproperties`(`propkey` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_schedulerobjectproperties_propvalue` ON `openidm`.`schedulerobjectproperties`(`propvalue` ASC);
`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);
CREATE INDEX IF NOT EXISTS `openidm`.`fk_clusterobjects_objectypes` ON `openidm`.`clusterobjects` (`objecttypes_id` ASC);
`clusterobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
CONSTRAINT `fk_clusterobjectproperties_clusterobjects`
FOREIGN KEY (`clusterobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION);
CREATE INDEX IF NOT EXISTS `fk_clusterobjectproperties_clusterobjects` ON `openidm`.`clusterobjectproperties` (`clusterobjects_id` ASC);
CREATE INDEX IF NOT EXiSTS `idx_clusterobjectproperties_propkey` ON `openidm`.`clusterobjectproperties` (`propkey` ASC);
CREATE INDEX IF NOT EXiSTS `idx_clusterobjectproperties_propvalue` ON `openidm`.`clusterobjectproperties` (`propvalue` ASC);
`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 ,
`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) ;
`updateobjects_id` BIGINT UNSIGNED NOT NULL ,
`propkey` VARCHAR(255) NOT NULL ,
`proptype` VARCHAR(32) NULL ,
CONSTRAINT `fk_updateobjectproperties_updateobjects`
FOREIGN KEY (`updateobjects_id` )
ON DELETE CASCADE
ON UPDATE NO ACTION);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_updateobjectproperties_propkey` ON `openidm`.`updateobjectproperties` (`propkey` ASC);
CREATE INDEX IF NOT EXISTS `openidm`.`idx_updateobjectproperties_propvalue` ON `openidm`.`updateobjectproperties` (`propvalue` ASC);
SELECT 'openidm-admin', '0', 'openidm-admin', '[ { "_ref" : "repo/internal/role/openidm-admin" }, { "_ref" : "repo/internal/role/openidm-authorized" } ]'
SELECT 'anonymous', '0', 'anonymous', '[ { "_ref" : "repo/internal/role/openidm-reg" } ]'
SELECT 'openidm-authorized', '0', 'Basic minimum user'
UNION
SELECT 'openidm-admin', '0', 'Administrative access'
UNION
SELECT 'openidm-cert', '0', 'Authenticated via certificate'
UNION
SELECT 'openidm-tasks-manager', '0', 'Allowed to reassign workflow tasks'
WHERE NOT EXISTS (SELECT * FROM `openidm`.`internalrole` WHERE `objectid` = 'openidm-tasks-manager')
UNION
SELECT 'openidm-reg', '0', 'Anonymous access'