hr.company_account_payment_methods
Schema: hr
English table: hr.company_account_payment_methods
Italian original table: hr.azienda_conti_mezzipag
Description: Payment method details linked to a company bank account.
Overview
- Columns: 10
- 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. |
capm_id | azcp_id | integer | NO | | Company account payment method internal identifier, unique per tenant. |
capm_company_account_id | azcp_azc_id | integer | NO | | Reference to the related company bank account. |
capm_payment_method_type_id | azcp_xtipipag_id | integer | NO | | Reference to the payment method type. |
capm_description | azcp_description | character varying(50) | NO | | Short description of the payment method. |
capm_code | azcp_code | character varying(50) | NO | | External or internal code for the payment method. |
capm_account_code | azcp_account_code | character varying(15) | NO | | Accounting code associated with this payment method. |
tenant_id | tenant_id | integer | YES | | Tenant identifier. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields in JSON format. |
_deleted | _deleted | boolean | YES | false | Soft delete flag. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_cmpaccpm_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_company_account_payment_methods → id
- Unique:
uk_cmpaccpm_capm_id_tenant → capm_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_cmpaccpm_tenant | NO | btree | tenant_id |
idx_cmpaccpm_tenant_account | NO | btree | tenant_id, capm_company_account_id) WHERE (_deleted = false |
idx_cmpaccpm_tenant_capm | NO | btree | tenant_id, capm_id) WHERE (_deleted = false |
idx_cmpaccpm_tenant_type | NO | btree | tenant_id, capm_payment_method_type_id) WHERE (_deleted = false |
Navigation