Schema: hr
English table: hr.system_logs
Italian original table: hr.log
Description: Audit trail and system logs tracking user activities and functional executions.
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. |
l_id | l_id | integer | NO | | Identifier of the related l record. |
l_ut_id | l_ut_id | integer | NO | | Identifier of the related l ut record. |
l_date | l_date | date | NO | | Date associated with the record. |
l_time | l_time | character varying(6) | NO | | Text value. |
l_page | l_page | character varying(20) | NO | | Text value. |
l_function | l_function | character varying(20) | NO | | Text value. |
l_rap_id_rif | l_rap_id_rif | integer | NO | | Numeric value. |
l_data_rif | l_data_rif | integer | NO | | Numeric value. |
l_tab_id | l_tab_id | integer | NO | | Identifier of the related l tab record. |
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_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
log_pkey → id
- Unique:
k_l_id_unique → l_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_syslog_code_tenant | NO | btree | tenant_id, l_id) WHERE (_deleted = false |
idx_syslog_table_ref_tenant | NO | btree | tenant_id, l_tab_id) WHERE (_deleted = false |
idx_syslog_user_tenant | NO | btree | tenant_id, l_ut_id) WHERE (_deleted = false |
idx_system_logs_tenant | NO | btree | tenant_id |
Navigation