Skip to main content

hr.deadline_types

Schema: hr
English table: hr.deadline_types
Italian original table: hr.scadenze
Description: Catalog of deadline types and scheduling rules (notice, repetition and shifting) within the tenant.

Overview

  • Columns: 16
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 0
  • Indexes: 3

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
deadline_type_idscad_idintegerNOTenant-scoped deadline type identifier.
namescad_denominazionecharacter varying(60)NODeadline type name.
descriptionscad_descrizionetextNODeadline type description.
notice_daysscad_gg_preavvisonumeric(3,0)NONumber of days of notice before the deadline.
fixed_datescad_data_fissadateNOFixed date associated with the deadline type, if applicable.
category_codescad_tipologiacharacter varying(3)NODeadline category code.
reference_codescad_riferimentocharacter varying(3)NOReference code used to calculate or classify the deadline.
repeat_countscad_num_ripetizioninumeric(4,0)NODefault number of repetitions for the deadline type.
shift_daysscad_sposta_giornonumeric(2,0)NONumber of days to shift the calculated deadline.
shift_direction_codescad_sposta_prec_succnumeric(2,0)NOShift direction code (e.g., previous/next) used with shift_days.
deadline_period_labelscad_periodo_scadenzacharacter varying(30)NOText label describing the deadline period.
activity_idscad_att_idintegerNOReferenced activity identifier associated with the deadline type.
tenant_idtenant_idintegerYESTenant identifier.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_deadline_types_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_deadline_typesid
  • Unique: uk_deadline_types_deadline_type_iddeadline_type_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_dlty_tenantNObtreetenant_id
idx_dlty_tenant_activityNObtreetenant_id, activity_id) WHERE (_deleted = false
idx_dlty_tenant_type_idNObtreetenant_id, deadline_type_id) WHERE (_deleted = false