Skip to main content

hr._email_templates

Schema: hr
English table: hr._email_templates
Italian original table: hr._email_template
Description: Email templates used for system notifications and communications (tenant-scoped).

Overview

  • Columns: 7
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 0
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key.
emt_template_idet_idintegerNOBusiness identifier of the email template.
emt_language_idet_lng_idintegerNOLanguage identifier for the template content.
emt_email_type_idet_xte_idintegerNOEmail type identifier associated with the template.
emt_subjectet_subjectcharacter varying(150)NOEmail subject.
emt_bodyet_texttextNOEmail body content.
tenant_idtenant_idintegerYESTenant identifier.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk__email_templates_email_typeemt_email_type_id, tenant_idhr.x_email_typesxet_id, tenant_idRESTRICTRESTRICT
fk__email_templates_languageemt_language_id, tenant_idhr.languageslanguage_code_id, tenant_idRESTRICTRESTRICT
fk__email_templates_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk__email_templatesid
  • Unique: uk_emt_template_id_tenantemt_template_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_emt_tenantNObtreetenant_id
idx_emt_tenant_email_typeNObtreetenant_id, emt_email_type_id
idx_emt_tenant_email_type_lngNObtreetenant_id, emt_email_type_id, emt_language_id
idx_emt_tenant_templateNObtreetenant_id, emt_template_id