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 column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
nt_id | not_id | integer | NO | | Identifier of the related nt record. |
nt_type_code | not_tipono_code | character varying(10) | NO | | Code for nt type. |
nt_member_id | not_ana_id | integer | NO | | Identifier of the related nt member record. |
nt_title | not_title | character varying(100) | NO | | Display name for nt. |
nt_content | not_text | text | NO | | Text value. |
nt_created_at | not_datetime_insert | character varying(12) | NO | | Text value. |
nt_is_read | not_letto | boolean | NO | | Boolean flag indicating if the notification has been opened by the user. |
nt_source_table_id | not_tabella_id | integer | NO | | Identifier of the related nt source table record. |
nt_is_hidden | not_nascosto | boolean | NO | | Boolean flag. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | _deleted | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_nt_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_nt → id
- Unique:
uk_nt_id_tenant → nt_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_nt_id_tenant | NO | btree | tenant_id, nt_id) WHERE (_deleted = false |
idx_nt_member_tenant | NO | btree | tenant_id, nt_member_id) WHERE (_deleted = false |
idx_nt_source_tenant | NO | btree | tenant_id, nt_source_table_id) WHERE (_deleted = false |
idx_nt_tenant | NO | btree | tenant_id |
Navigation