Native PostgreSQL Schema Script: postgres.sql - Cases and certification
This page documents schema objects parsed from config/sql/native/postgres.sql.
Region: Cases and certification
Case management, access certification campaigns, certification cases, work items, and reviewer references.
Tables
m_access_cert_campaign
Stores access certification campaign objects.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#AccessCertificationCampaignType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Access certification campaign object identifier. |
|
|
||
|
|
OID of the certification definition reference target. |
|
|
|
Object type of the certification definition reference target. |
|
|
|
Relation URI identifier of the certification definition reference. |
|
|
|
Time when the certification campaign ended. |
|
|
|
URI identifier of the certification campaign handler. |
|
|
|
required |
Campaign iteration number. |
|
|
OID of the campaign owner reference target. |
|
|
|
Object type of the campaign owner reference target. |
|
|
|
Relation URI identifier of the campaign owner reference. |
|
|
|
Current campaign stage number. |
|
|
|
Time when the certification campaign started. |
|
|
|
Current certification campaign state. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up lookup by original object name. Used for: original name searches |
|
|
Enforces unique normalized object names and speeds up exact name lookup. Used for: normalized name lookup and uniqueness checks. unique |
|
|
Speeds up filtering by object subtype. Used for: subtype filters |
|
|
Speeds up filtering by policy situation. Used for: policy situation filters |
|
|
Speeds up filtering by indexed extension values. Used for: extension item filters |
|
|
Speeds up full-text-like object searches. Used for: full-text-like object searches |
|
|
Speeds up filtering or ordering by creation time. Used for: creation time filters and ordering |
|
|
Speeds up filtering or ordering by modification time. Used for: modification time filters and ordering |
Foreign keys
| Column | References |
|---|---|
|
|
|
|
|
|
|
m_access_cert_case
Stores access certification cases inside certification campaigns.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#AccessCertificationCaseType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the access certification campaign that owns the case. |
|
|
||
|
|
Administrative activation status of the certified object. |
|
|
|
Archive timestamp of the certified object. |
|
|
|
Disable reason of the certified object. |
|
|
|
Disable timestamp of the certified object. |
|
|
|
Effective activation status of the certified object. |
|
|
|
Enable timestamp of the certified object. |
|
|
|
Validity interval start of the certified object. |
|
|
|
Validity interval end of the certified object. |
|
|
|
Time when validity state last changed. |
|
|
|
Validity interval status. |
|
|
|
Outcome of the current certification stage. |
|
|
|
Serialized full certification case value. |
|
|
|
required |
Campaign iteration number for this case. |
|
|
OID of the certified object reference target. |
|
|
|
Object type of the certified object reference target. |
|
|
|
Relation URI identifier of the certified object reference. |
|
|
|
OID of the organization reference target. |
|
|
|
Object type of the organization reference target. |
|
|
|
Relation URI identifier of the organization reference. |
|
|
|
Overall certification case outcome. |
|
|
|
Time when the certification case was remediated. |
|
|
|
Deadline of the current certification stage. |
|
|
|
Creation time of the current certification stage. |
|
|
|
Current certification stage number. |
|
|
|
OID of the certification target reference target. |
|
|
|
Object type of the certification target reference target. |
|
|
|
Relation URI identifier of the certification target reference. |
|
|
|
OID of the tenant reference target. |
|
|
|
Object type of the tenant reference target. |
|
|
|
Relation URI identifier of the tenant reference. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up lookup of certification cases by certified object. Used for: certification case object searches |
|
|
Speeds up lookup of certification cases by target object. Used for: certification case target searches |
|
|
Speeds up lookup of certification cases by tenant. Used for: certification case tenant filters |
|
|
Speeds up lookup of certification cases by organization. Used for: certification case organization filters |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
m_access_cert_definition
Stores access certification definition objects.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#AccessCertificationDefinitionType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Access certification definition object identifier. |
|
|
||
|
|
URI identifier of the certification handler. |
|
|
|
Time when the last campaign from this definition started. |
|
|
|
Time when the last campaign from this definition closed. |
|
|
|
OID of the definition owner reference target. |
|
|
|
Object type of the definition owner reference target. |
|
|
|
Relation URI identifier of the definition owner reference. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up lookup by original object name. Used for: original name searches |
|
|
Enforces unique normalized object names and speeds up exact name lookup. Used for: normalized name lookup and uniqueness checks. unique |
|
|
Speeds up filtering by object subtype. Used for: subtype filters |
|
|
Speeds up filtering by policy situation. Used for: policy situation filters |
|
|
Speeds up filtering by indexed extension values. Used for: extension item filters |
|
|
Speeds up full-text-like object searches. Used for: full-text-like object searches |
|
|
Speeds up filtering or ordering by creation time. Used for: creation time filters and ordering |
|
|
Speeds up filtering or ordering by modification time. Used for: modification time filters and ordering |
Foreign keys
| Column | References |
|---|---|
|
|
|
|
|
m_access_cert_wi
Stores work items for access certification cases.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#AccessCertificationWorkItemType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the certification campaign that owns the work item. |
|
|
primary key, required |
Container ID of the certification case that owns the work item. |
|
|
||
|
|
Time when the certification work item was closed. |
|
|
|
required |
Campaign iteration number for this work item. |
|
|
||
|
|
Time when the work item output changed. |
|
|
|
OID of the performer reference target. |
|
|
|
Object type of the performer reference target. |
|
|
|
Relation URI identifier of the performer reference. |
|
|
|
Certification stage number for this work item. |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
- |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_access_cert_wi_assignee
Stores assignee references for access certification work items.
Inherits from: m_reference
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the certification campaign that owns the work item. |
|
|
primary key, required |
Container ID of the certification case. |
|
|
primary key, required |
Container ID of the certification work item. |
|
|
primary key, required |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of certification work item assignees by target object and relation. Used for: certification work item assignee searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_access_cert_wi_candidate
Stores candidate references for access certification work items.
Inherits from: m_reference
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the certification campaign that owns the work item. |
|
|
primary key, required |
Container ID of the certification case. |
|
|
primary key, required |
Container ID of the certification work item. |
|
|
primary key, required |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of certification work item candidates by target object and relation. Used for: certification work item candidate searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_case
Stores case objects used for approvals, manual actions, and other case-management workflows.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#CaseType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Case object identifier. |
|
|
||
|
|
Case state. |
|
|
|
Time when the case was closed. |
|
|
|
OID of the object reference target. |
|
|
|
Object type of the object reference target. |
|
|
|
Relation URI identifier of the object reference. |
|
|
|
OID of the parent case reference target. |
|
|
|
Object type of the parent case reference target. |
|
|
|
Relation URI identifier of the parent case reference. |
|
|
|
OID of the requestor reference target. |
|
|
|
Object type of the requestor reference target. |
|
|
|
Relation URI identifier of the requestor reference. |
|
|
|
OID of the case target reference target. |
|
|
|
Object type of the case target reference target. |
|
|
|
Relation URI identifier of the case target reference. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up lookup by original object name. Used for: original name searches |
|
|
Speeds up lookup by normalized object name. Used for: normalized name lookup |
|
|
Speeds up filtering by object subtype. Used for: subtype filters |
|
|
Speeds up filtering by policy situation. Used for: policy situation filters |
|
|
Speeds up full-text-like object searches. Used for: full-text-like object searches |
|
|
Speeds up lookup of cases by object reference target. Used for: case object reference searches |
|
|
Speeds up lookup of cases by target reference target. Used for: case target reference searches |
|
|
Speeds up lookup of child cases by parent reference target. Used for: case parent reference searches |
|
|
Speeds up lookup of cases by requestor reference target. Used for: case requestor reference searches |
|
|
Speeds up filtering or ordering cases by close time. Used for: case close time filters and ordering |
|
|
Speeds up filtering or ordering by creation time. Used for: creation time filters and ordering |
|
|
Speeds up filtering or ordering by modification time. Used for: modification time filters and ordering |
Foreign keys
| Column | References |
|---|---|
|
|
|
|
|
|
|
|
|
m_case_wi
Stores case work items assigned to users or groups.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#CaseWorkItemType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the case that owns the work item. |
|
|
||
|
|
Time when the work item was closed. |
|
|
|
Time when the work item was created. |
|
|
|
Work item deadline. |
|
|
|
OID of the original assignee reference target. |
|
|
|
Object type of the original assignee reference target. |
|
|
|
Relation URI identifier of the original assignee reference. |
|
|
|
||
|
|
OID of the performer reference target. |
|
|
|
Object type of the performer reference target. |
|
|
|
Relation URI identifier of the performer reference. |
|
|
|
Certification or approval stage number associated with the work item. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up filtering or ordering case work items by creation time. Used for: case work item creation time filters and ordering |
|
|
Speeds up filtering or ordering case work items by close time. Used for: case work item close time filters and ordering |
|
|
Speeds up filtering or ordering case work items by deadline. Used for: case work item deadline filters and ordering |
|
|
Speeds up lookup by original assignee reference target. Used for: case work item original assignee searches |
|
|
Speeds up lookup by performer reference target. Used for: case work item performer searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
|
|
- |
m_case_wi_assignee
Stores assignee references for case work items.
Inherits from: m_reference
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the case that owns the work item. |
|
|
primary key, required |
Container ID of the work item. |
|
|
primary key, required |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of case work item assignees by target object and relation. Used for: case work item assignee searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_case_wi_candidate
Stores candidate references for case work items.
Inherits from: m_reference
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the case that owns the work item. |
|
|
primary key, required |
Container ID of the work item. |
|
|
primary key, required |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of case work item candidates by target object and relation. Used for: case work item candidate searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
Triggers
Triggers run routines automatically when table rows are inserted, updated, or deleted.