hr.document_model_step_emails
Schema: hr
English table: hr.document_model_step_emails
Italian original table: hr.in_docmodel_step_email
Description: Configuration for email notifications triggered during document workflow steps.
Overview
- Columns: 9
- Primary key: id
- Outgoing foreign keys: 3
- Incoming foreign keys: 0
- Indexes: 5
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Internal surrogate primary key. | |
dmse_id | dmse_id | integer | NO | Unique identifier for the step email configuration within a tenant. | |
dmse_step_id | dmse_dms_id | integer | NO | Reference to the workflow step that triggers the email. | |
dmse_email_template_id | dmsa_et_id | integer | NO | Reference to the email template to be used. | |
dmse_email_type_id | dmse_xte_id | integer | NO | Reference to the email category or type. | |
dmse_recipient_holder_type_code | dmse_xtipdet_code | character varying(5) | NO | Code identifying the type of holder/role that will receive the email. | |
tenant_id | tenant_id | integer | YES | Tenant identifier for data isolation. | |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON field for custom data. |
_deleted | _deleted | boolean | YES | false | Technical soft delete flag. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_document_model_step_emails_step | dmse_step_id, tenant_id | hr.document_model_steps | dms_id, tenant_id | RESTRICT | RESTRICT |
fk_document_model_step_emails_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
fk_document_model_step_emails_type | dmse_email_type_id, tenant_id | hr.x_email_types | xet_id, tenant_id | RESTRICT | RESTRICT |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_document_model_step_emails→id - Unique:
uk_document_model_step_emails_id→dmse_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_dmse_id_tenant | NO | btree | tenant_id, dmse_id) WHERE (_deleted = false |
idx_dmse_step_tenant | NO | btree | tenant_id, dmse_step_id) WHERE (_deleted = false |
idx_dmse_step_type_tenant | NO | btree | tenant_id, dmse_step_id, dmse_email_type_id) WHERE (_deleted = false |
idx_dmse_tenant | NO | btree | tenant_id |
idx_dmse_type_tenant | NO | btree | tenant_id, dmse_email_type_id) WHERE (_deleted = false |
Navigation
- Back to main index
- [Back to
hrindex]../)