Native PostgreSQL Schema Script: postgres.sql - Lookup tables
This page documents schema objects parsed from config/sql/native/postgres.sql.
Region: Lookup tables
Lookup table objects and their key-value row data.
Tables
m_connector
Stores connector definitions discovered or configured in midPoint.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#ConnectorType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Connector object identifier. |
|
|
||
|
|
Connector bundle name, typically a package name. |
|
|
|
required |
Connector type, typically a connector class name. |
|
|
required |
Connector version. |
|
|
URI identifier of the connector framework. |
|
|
|
OID of the connector host reference target. |
|
|
|
Object type of the connector host reference target. |
|
|
|
Relation URI identifier of the connector host reference. |
|
|
|
Connector display name in original form. |
|
|
|
Connector display name in normalized form. |
|
|
|
URI identifiers of target system types supported by the connector. |
|
|
|
Marks whether the connector is available. |
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 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_connector_development
Stores connector development objects.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#ConnectorDevelopmentType
Inherits from: m_object
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Connector development object identifier. |
|
|
Foreign keys
| Column | References |
|---|---|
|
m_connector_host
Stores remote connector host definitions.
Represents ConnectorHostType, see https://docs.evolveum.com/connectors/connid/1.x/connector-server/
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#ConnectorHostType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Connector host object identifier. |
|
|
||
|
|
Connector host hostname. |
|
|
|
Connector host port. |
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 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_lookup_table
Stores lookup table objects used for reusable key-value mappings.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#LookupTableType
Inherits from: m_assignment_holder
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
Lookup table object identifier. |
|
|
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 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_lookup_table_row
Stores rows of lookup table key-value data.
Lookup table row currently doesn’t store whole polystring data for label property,
only the original and normalized string values are stored.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#LookupTableRowType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the lookup table that owns this row. |
|
|
||
|
|
Lookup table row key. |
|
|
|
Lookup table row value. |
|
|
|
Lookup table row label in original form. |
|
|
|
Lookup table row label in normalized form. |
|
|
|
Time when this lookup table row last changed. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Enforces unique lookup table row keys within one lookup table. Used for: lookup table row key lookup and uniqueness checks. unique |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
Triggers
Triggers run routines automatically when table rows are inserted, updated, or deleted.