Skip to main content

hr.notifications

Schema: hr
English table: hr.notifications
Italian original table: hr.notifiche
Description: System and user notifications, tracking delivery, read status, and source references.

Overview

  • Columns: 13
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 0
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
nt_idnot_idintegerNOIdentifier of the related nt record.
nt_type_codenot_tipono_codecharacter varying(10)NOCode for nt type.
nt_member_idnot_ana_idintegerNOIdentifier of the related nt member record.
nt_titlenot_titlecharacter varying(100)NODisplay name for nt.
nt_contentnot_texttextNOText value.
nt_created_atnot_datetime_insertcharacter varying(12)NOText value.
nt_is_readnot_lettobooleanNOBoolean flag indicating if the notification has been opened by the user.
nt_source_table_idnot_tabella_idintegerNOIdentifier of the related nt source table record.
nt_is_hiddennot_nascostobooleanNOBoolean flag.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON payload containing additional attributes.
_deleted_deletedbooleanYESfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_nt_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_ntid
  • Unique: uk_nt_id_tenantnt_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_nt_id_tenantNObtreetenant_id, nt_id) WHERE (_deleted = false
idx_nt_member_tenantNObtreetenant_id, nt_member_id) WHERE (_deleted = false
idx_nt_source_tenantNObtreetenant_id, nt_source_table_id) WHERE (_deleted = false
idx_nt_tenantNObtreetenant_id