hr.person_deadline_schedule
Schema: hr
English table: hr.person_deadline_schedule
Italian original table: hr.ana_scadenziario
Description: Operational schedule of deadlines for an employment relationship and company, including completion status and notes, within the tenant.
Overview
- Columns: 12
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 7
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Surrogate primary key. | |
person_deadline_schedule_id | anascad_id | integer | NO | Tenant-scoped deadline schedule record identifier. | |
employment_relationship_id | anascad_rap_id | integer | NO | Referenced employment relationship identifier (tenant-scoped). | |
company_id | anascad_az_id | integer | NO | Referenced company identifier (tenant-scoped). | |
deadline_type_id | anascad_scad_id | integer | NO | Referenced deadline type identifier (tenant-scoped). | |
due_date | anascad_data | date | NO | Due date for the scheduled deadline. | |
is_completed | anascad_eseguito | boolean | NO | Indicates whether the scheduled deadline has been completed. | |
notes | anascad_note | text | NO | Notes related to the scheduled deadline. | |
completed_on | anascad_data_esecuzione | date | NO | Date when the scheduled deadline was completed. | |
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. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_person_deadline_schedule_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_person_deadline_schedule→id - Unique:
uk_person_deadline_schedule_schedule_id→person_deadline_schedule_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_prds_tenant | NO | btree | tenant_id |
idx_prds_tenant_company | NO | btree | tenant_id, company_id) WHERE (_deleted = false |
idx_prds_tenant_due | NO | btree | tenant_id, due_date) WHERE (_deleted = false |
idx_prds_tenant_rel | NO | btree | tenant_id, employment_relationship_id) WHERE (_deleted = false |
idx_prds_tenant_rel_due | NO | btree | tenant_id, employment_relationship_id, due_date) WHERE (_deleted = false |
idx_prds_tenant_schedule_id | NO | btree | tenant_id, person_deadline_schedule_id) WHERE (_deleted = false |
idx_prds_tenant_type | NO | btree | tenant_id, deadline_type_id) WHERE (_deleted = false |
Navigation
- Back to main index
- [Back to
hrindex]../)