Skip to main content

hr.company_deadlines

Schema: hr
English table: hr.company_deadlines
Italian original table: hr.aziende_scadenze
Description: Deadlines associated with a company, including date range and repetition count, within the tenant.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
company_deadline_idazscad_idintegerNOTenant-scoped company deadline record identifier.
company_idazscad_az_idintegerNOReferenced company identifier (tenant-scoped).
deadline_type_idazscad_scad_idintegerNOReferenced deadline type identifier (tenant-scoped).
start_dateazscad_datadateNOStart date of the deadline period.
end_dateazscad_data_enddateNOEnd date of the deadline period.
repeat_countazscad_num_repsintegerNONumber of repetitions for the deadline.
tenant_idtenant_idintegerYESTenant identifier.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.
periodazscad_periododaterangeYESGENERATED: daterange(start_date, end_date, '[]'::text)Period as daterange generated from start_date and end_date.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_company_deadlines_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_company_deadlinesid
  • Unique: uk_company_deadlines_deadline_idcompany_deadline_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cpdl_tenantNObtreetenant_id
idx_cpdl_tenant_companyNObtreetenant_id, company_id) WHERE (_deleted = false
idx_cpdl_tenant_company_period_gistNOgisttenant_id, company_id, period) WHERE (_deleted = false
idx_cpdl_tenant_deadline_idNObtreetenant_id, company_deadline_id) WHERE (_deleted = false
idx_cpdl_tenant_period_gistNOgisttenant_id, period) WHERE (_deleted = false
idx_cpdl_tenant_typeNObtreetenant_id, deadline_type_id) WHERE (_deleted = false