hr.rooms_timeslot_assignments
Schema: hr
English table: hr.rooms_timeslot_assignments
Italian original table: hr.in_riu_assegna_fasce
Description: Assigns specific time slots for shared rooms (meeting rooms, canteen, etc.) to individuals, defining guest access permissions.
Overview
- Columns: 8
- Primary key: id
- Outgoing foreign keys: 3
- Incoming foreign keys: 0
- Indexes: 4
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
rta_id | riufa_id | integer | NO | | Identifier of the related rta record. |
rta_person_id | riufa_ana_id | integer | NO | | Reference to the person (anagrafico) assigned to the room/slot. |
rta_timeslot_id | riufa_riuf_id | integer | NO | | Reference to the specific room timeslot definition. |
rta_allow_guests | riufa_ospiti | boolean | NO | | Indicates if the person is permitted to bring guests during the assigned slot. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | _deleted | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_rta_person | rta_person_id, tenant_id | hr.person_registry | pr_id, tenant_id | RESTRICT | CASCADE |
fk_rta_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
fk_rta_timeslot | rta_timeslot_id, tenant_id | hr.rooms_timeslot_definitions | rtd_id, tenant_id | RESTRICT | RESTRICT |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_rooms_timeslot_assignments → id
- Unique:
uk_rooms_timeslot_assignments_id → rta_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_rta_id_tenant | NO | btree | tenant_id, rta_id) WHERE (_deleted = false |
idx_rta_person_tenant | NO | btree | tenant_id, rta_person_id) WHERE (_deleted = false |
idx_rta_tenant | NO | btree | tenant_id |
idx_rta_timeslot_tenant | NO | btree | tenant_id, rta_timeslot_id) WHERE (_deleted = false |
Navigation