Skip to main content

hr.expense_reimbursement_types

Schema: hr
English table: hr.expense_reimbursement_types
Italian original table: hr.in_notaspese_rimborsi
Description: Expense reimbursement types/configuration (multi-tenant). Defines rules, limits and accounting code for expense reimbursements.

Overview

  • Columns: 11
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 3
  • Indexes: 2

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
ert_idnsr_idintegerNOLogical reimbursement type identifier (unique per tenant).
ert_descriptionnsr_descriptioncharacter varying(100)NOReimbursement type description.
ert_is_enablednsr_enabledbooleanNOWhether the reimbursement type is enabled/active.
ert_max_unit_amountnsr_max_value_unitnumeric(8,2)NOMaximum reimbursable amount per unit (business-defined unit).
ert_can_pay_othersnsr_pay_othersbooleanNOIf true, reimbursement can be paid for other people (business rule).
ert_requires_company_car_infonsr_ask_company_carbooleanNOIf true, requires company car information (business rule).
ert_account_codensr_account_codecharacter varying(15)NOAccounting code for payroll/accounting integration.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields (JSON).
_deleted_deletedbooleanYESfalseTechnical soft-delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_ert_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.expense_note_linesfk_enl_reimbursement_type_idenl_reimbursement_type_id, tenant_idert_id, tenant_id
hr.expense_reimbursement_type_account_linksfk_ertac_reimbursement_typeertac_ert_id, tenant_idert_id, tenant_id
hr.expense_reimbursement_type_custom_fieldsfk_ertcf_reimbursement_typeertcf_ert_id, tenant_idert_id, tenant_id

Constraints

  • Primary key: pk_expense_reimbursement_typesid
  • Unique: uk_ert_id_tenantert_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_expense_reimbursement_types_ert_id_tenantNObtreetenant_id, ert_id) WHERE (_deleted = false
idx_expense_reimbursement_types_tenantNObtreetenant_id