Native PostgreSQL Schema Script: postgres.sql - Assignments
This page documents schema objects parsed from config/sql/native/postgres.sql.
Region: Assignments
Assignment and inducement containers, assignment metadata, and assignment reference tables.
Tables
m_assignment
Stores assignment and inducement containers for assignment-holding objects.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#AssignmentType
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the object that owns the assignment or inducement. |
|
|
primary key, required |
Assignment or inducement container identifier unique within the owning object. |
|
|
required |
Distinguishes assignment and inducement containers. |
|
|
required |
Object type of the assignment owner. |
|
|
Assignment lifecycle state. |
|
|
|
Assignment order value. |
|
|
|
OID of the organization reference target. |
|
|
|
Object type of the organization reference target. |
|
|
|
Relation URI identifier of the organization reference. |
|
|
|
OID of the assignment target reference target. |
|
|
|
Object type of the assignment target reference target. |
|
|
|
Relation URI identifier of the assignment target reference. |
|
|
|
OID of the tenant reference target. |
|
|
|
Object type of the tenant reference target. |
|
|
|
Relation URI identifier of the tenant reference. |
|
|
|
Policy situation URI identifiers attached to the assignment. |
|
|
|
Assignment subtype values used for subtype filtering. |
|
|
|
Indexed extension values stored as JSON data. |
|
|
|
OID of the construction resource reference target. |
|
|
|
Object type of the construction resource reference target. |
|
|
|
Relation URI identifier of the construction resource reference. |
|
|
|
Administrative activation status of the assignment. |
|
|
|
Effective activation status of the assignment. |
|
|
|
Time when the assignment becomes enabled. |
|
|
|
Time when the assignment becomes disabled. |
|
|
|
Reason why the assignment is disabled. |
|
|
|
Validity interval status of the assignment. |
|
|
|
Start of the assignment validity interval. |
|
|
|
End of the assignment validity interval. |
|
|
|
Time when assignment validity state last changed. |
|
|
|
Time when the assignment was archived. |
|
|
|
OID of the object that created this assignment. |
|
|
|
Object type of the object that created this assignment. |
|
|
|
Relation URI identifier for the creator reference. |
|
|
|
URI identifier of the channel that created the assignment. |
|
|
|
Time when the assignment was created. |
|
|
|
OID of the object that last modified this assignment. |
|
|
|
Object type of the object that last modified this assignment. |
|
|
|
Relation URI identifier for the modifier reference. |
|
|
|
URI identifier of the channel that last modified the assignment. |
|
|
|
Time when the assignment was last modified. |
|
|
|
Serialized full assignment value. |
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up filtering or ordering assignment metadata by creation time. Used for: assignment metadata creation time filters and ordering |
|
|
Speeds up filtering or ordering assignment metadata by modification time. Used for: assignment metadata modification time filters and ordering |
|
|
Speeds up filtering by policy situation. Used for: policy situation filters |
|
|
Speeds up filtering by assignment subtype. Used for: subtype filters |
|
|
Speeds up filtering by indexed extension values. Used for: extension item filters |
|
|
Speeds up filtering by assignment validity start time. Used for: validity interval filters |
|
|
Speeds up filtering by assignment validity end time. Used for: validity interval filters |
|
|
Speeds up lookup of assignments by target reference target. Used for: assignment target reference searches |
|
|
Speeds up lookup of assignments by tenant reference target. Used for: assignment tenant reference searches |
|
|
Speeds up lookup of assignments by organization reference target. Used for: assignment organization reference searches |
|
|
Speeds up lookup of assignments by construction resource reference target. Used for: assignment construction resource 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 | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
m_assignment_metadata
Stores value metadata for assignments and inducements.
XSD type: http://midpoint.evolveum.com/xml/ns/public/common/common-3#ValueMetadataType
Inherits from: m_container
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the object that owns the assignment metadata. |
|
|
Object type of the assignment metadata owner. |
|
|
|
primary key, required |
Container ID of the assignment that owns this metadata value. |
|
|
||
|
|
OID of the object that created this metadata value. |
|
|
|
Object type of the object that created this metadata value. |
|
|
|
Relation URI identifier for the creator reference. |
|
|
|
URI identifier of the channel that created this metadata value. |
|
|
|
Time when this metadata value was created. |
|
|
|
OID of the object that last modified this metadata value. |
|
|
|
Object type of the object that last modified this metadata value. |
|
|
|
Relation URI identifier for the modifier reference. |
|
|
|
URI identifier of the channel that last modified this metadata value. |
|
|
|
Time when this metadata value was last modified. |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_assignment_ref_create_approver
Stores create-approver references from assignment metadata.
Inherits from: m_reference
No primary key is defined directly on this table. The table inherits from m_reference.
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
required |
OID of the object that owns the assignment. |
|
|
required |
Container ID of the assignment that owns the reference. |
|
|
Container ID of the assignment metadata value, when the reference belongs to value metadata. |
|
|
|
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of assignment create-approver references by target object and relation. Used for: assignment create-approver reference target searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_assignment_ref_modify_approver
Stores modify-approver references from assignment metadata.
Inherits from: m_reference
No primary key is defined directly on this table. The table inherits from m_reference.
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
required |
OID of the object that owns the assignment. |
|
|
required |
Container ID of the assignment that owns the reference. |
|
|
Container ID of the assignment metadata value, when the reference belongs to value metadata. |
|
|
|
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of assignment modify-approver references by target object and relation. Used for: assignment modify-approver reference target searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
|
|
ON DELETE CASCADE |
m_ref_assignment_effective_mark
Stores effective mark references attached to assignments.
Inherits from: m_reference
Columns
| Column | Type | Required / constraints | Description |
|---|---|---|---|
|
|
primary key, required |
OID of the object that owns the assignment. |
|
|
primary key, required |
Container ID of the assignment that owns the effective mark reference. |
|
|
Indexes
| Name | Columns | Purpose / notes |
|---|---|---|
|
|
Speeds up reverse lookup of assignment effective mark references by target object and relation. Used for: assignment effective mark reference target searches |
Foreign keys
| Column | References | Notes |
|---|---|---|
|
ON DELETE CASCADE |