Skip to main content

hr.customer_location_group_assignments

Schema: hr
English table: hr.customer_location_group_assignments
Italian original table: hr.in_clienti_sedi_gruppi
Description: Link table between customer locations and element groups for categorization.

Overview

  • Columns: 7
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 0
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
clga_idincliseg_idintegerNOUnique identifier for the location assignment within a tenant.
clga_customer_location_idincliseg_inclise_idintegerNOReference to the customer location (customer_locations).
clga_group_idincliseg_grp_idintegerNOReference to the element group.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON field for custom data.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_customer_location_group_assignments_groupclga_group_id, tenant_idhr.element_groupseg_id, tenant_idRESTRICTRESTRICT
fk_customer_location_group_assignments_locationclga_customer_location_id, tenant_idhr.in_clienti_sediinclise_id, tenant_idRESTRICTRESTRICT
fk_customer_location_group_assignments_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_customer_location_group_assignmentsid
  • Unique: uk_customer_location_group_assignments_idclga_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_clga_group_tenantNObtreetenant_id, clga_group_id) WHERE (_deleted = false
idx_clga_id_tenantNObtreetenant_id, clga_id) WHERE (_deleted = false
idx_clga_location_tenantNObtreetenant_id, clga_customer_location_id) WHERE (_deleted = false
idx_clga_tenantNObtreetenant_id