hr.x_employment_agreement_types
Schema: hr
English table: hr.x_employment_agreement_types
Italian original table: hr.x_tipi_rapporto
Description: Lookup table for employment agreement categories (indeterminato, apprendistato, etc.) with specific payroll/time tracking rules.
Overview
- Columns: 8
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 1
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
xeat_id | trap_id | integer | NO | | Identifier of the related xeat record. |
xeat_description | trap_descrizione | character varying(50) | NO | | Description text. |
xeat_is_time_tracked | trap_gestisci_presenze | boolean | NO | | Boolean flag. |
xeat_print_timesheet | trap_stampa_cartellino | boolean | NO | | Boolean flag. |
xeat_print_monthly_closure | trap_stampa_chiusura_mensile | boolean | NO | | Boolean flag. |
xeat_print_payroll_ledger | trap_stampa_lul | boolean | NO | | Boolean flag. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
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
| From table | Foreign key | Source columns | Target columns |
|---|
hr.employment_relationships | fk_employment_relationships_type | er_relationship_type_id, tenant_id | xeat_id, tenant_id |
Constraints
- Primary key:
x_tipi_rapporto_pkey → id
- Unique:
k_trap_id_unique → xeat_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_x_tipi_rapporto_tenant | NO | btree | tenant_id |
idx_x_tipi_rapporto_trap_id_tenant | NO | btree | tenant_id, xeat_id |
Navigation