Skip to main content

hr.canteen_companies

Schema: hr
English table: hr.canteen_companies
Italian original table: hr.me_mensa_azienda
Description: External or internal companies whose members use the canteen service, used for service cost billing.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
cc_idmensaaz_idintegerNOIdentifier of the related cc record.
cc_descriptionmensaaz_descrizionecharacter varying(50)NOCommercial name or description of the company for invoicing purposes.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON payload containing additional attributes.
_deleted_deletedbooleanYESfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cc_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.canteen_membersfk_cm_canteen_companycm_canteen_company_id, tenant_idcc_id, tenant_id

Constraints

  • Primary key: pk_ccid
  • Unique: uk_cc_id_tenantcc_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cc_id_tenantNObtreetenant_id, cc_id) WHERE (_deleted = false
idx_cc_tenantNObtreetenant_id