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 column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Surrogate primary key. | |
company_deadline_id | azscad_id | integer | NO | Tenant-scoped company deadline record identifier. | |
company_id | azscad_az_id | integer | NO | Referenced company identifier (tenant-scoped). | |
deadline_type_id | azscad_scad_id | integer | NO | Referenced deadline type identifier (tenant-scoped). | |
start_date | azscad_data | date | NO | Start date of the deadline period. | |
end_date | azscad_data_end | date | NO | End date of the deadline period. | |
repeat_count | azscad_num_reps | integer | NO | Number of repetitions for the deadline. | |
tenant_id | tenant_id | integer | YES | Tenant identifier. | |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields in JSON format. |
_deleted | _deleted | boolean | YES | false | Technical soft delete flag. |
period | azscad_periodo | daterange | YES | GENERATED: daterange(start_date, end_date, '[]'::text) | Period as daterange generated from start_date and end_date. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_company_deadlines_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_company_deadlines→id - Unique:
uk_company_deadlines_deadline_id→company_deadline_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_cpdl_tenant | NO | btree | tenant_id |
idx_cpdl_tenant_company | NO | btree | tenant_id, company_id) WHERE (_deleted = false |
idx_cpdl_tenant_company_period_gist | NO | gist | tenant_id, company_id, period) WHERE (_deleted = false |
idx_cpdl_tenant_deadline_id | NO | btree | tenant_id, company_deadline_id) WHERE (_deleted = false |
idx_cpdl_tenant_period_gist | NO | gist | tenant_id, period) WHERE (_deleted = false |
idx_cpdl_tenant_type | NO | btree | tenant_id, deadline_type_id) WHERE (_deleted = false |
Navigation
- Back to main index
- [Back to
hrindex]../)