pres.profora
Schema: pres
English table: pres.profora
Italian original table:
Description: Records for profora.
Overview
- Columns: 18
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 3
- Indexes: 1
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | `` | integer | NO | Identifier of the related record. | |
por_id | `` | integer | NO | Identifier of the related por. | |
tenant_id | `` | integer | NO | Identifier of the related tenant. | |
cod_por | `` | character(4) | NO | ''::bpchar | Value of cod por. |
por_descrizione | `` | character varying(40) | NO | ''::character varying | Description of por descrizione. |
por_settimane | `` | numeric(4,2) | NO | 0 | Value of por settimane. |
por_sett_partenza | `` | numeric(2,0) | NO | 0 | Value of por sett partenza. |
por_data_partenza | `` | date | NO | Value of por data partenza. | |
por_festiv_infra | `` | boolean | NO | false | Boolean flag for por festiv infra. |
por_rispetta_calen | `` | boolean | NO | false | Boolean flag for por rispetta calen. |
por_tipo_tempo | `` | numeric(1,0) | NO | 0 | Value of por tipo tempo. |
por_n_giorni | `` | numeric(1,0) | NO | 0 | Value of por n giorni. |
por_chiudi_settimane | `` | boolean | NO | false | Boolean flag for por chiudi settimane. |
por_expr_settimana | `` | text | NO | ''::text | Value of por expr settimana. |
por_set_partenza | `` | numeric(2,0) | YES | 1 | Value of por set partenza. |
por_riposi_variabili | `` | boolean | YES | false | Boolean flag for por riposi variabili. |
por_codice_riposo | `` | character varying(4) | YES | ''::character varying | Value of por codice riposo. |
_deleted | `` | boolean | NO | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_profora_tenant_id_to_tenant | tenant_id | cloud.tenants | ten_internal_id | CASCADE | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|---|---|---|
pres.profora_assign | fk_profora_assign_orass_cod_profora_to_profora | tenant_id, orass_cod_profora | tenant_id, cod_por |
pres.weekly_schedule_details | fk_wsd_parent_schema | tenant_id, wsd_schema_code | tenant_id, cod_por |
pres.weekly_shift_schema_profiles | fk_wssp_weekly_shift_schemas | tenant_id, wssp_schema_code | tenant_id, cod_por |
Constraints
- Primary key:
profora_pkey→id - Unique:
profora_cod_por_key→tenant_id, cod_por - Unique:
profora_por_id_key→tenant_id, por_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_profora_por_id | NO | btree | tenant_id, por_id) WHERE (_deleted = false |
Navigation
- Back to main index
- [Back to
presindex]../)