hr.expense_note_payment_methods
Schema: hr
English table: hr.expense_note_payment_methods
Italian original table: hr.in_notaspese_metodi_pagamento
Description: Lookup/configuration table for expense note payment methods.
Overview
- Columns: 7
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
enpm_id | nsp_id | integer | NO | | Logical payment method identifier (unique per tenant). |
enpm_description | nsp_description | character varying(100) | NO | | Payment method description. |
enpm_payable | nsp_payable | integer | NO | | Payable/settlement flag or code (business meaning depends on application rules). |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields container (JSON). |
_deleted | _deleted | boolean | YES | false | Technical soft delete flag. FALSE = active, TRUE = hidden (not a functional deletion). |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_enpm_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_expense_note_payment_methods → id
- Unique:
uk_enpm_id_tenant → enpm_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_expense_note_payment_methods_tenant | NO | btree | tenant_id |
idx_expense_note_payment_methods_tenant_enpm_id | NO | btree | tenant_id, enpm_id) WHERE (_deleted = false |
Navigation