hr.clocking_points
Schema: hr
English table: hr.clocking_points
Italian original table: hr.in_punti_timbratura
Description: Geofencing and location definitions for valid employee clock-in/out points.
Overview
- Columns: 14
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 4
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Internal surrogate primary key. | |
cp_id | pt_id | integer | NO | Unique identifier for the clocking point within a tenant. | |
cp_company_id | pt_az_id | integer | NO | Reference to the company (azienda) associated with this point. | |
cp_branch_id | pt_sede_id | integer | NO | Reference to the specific branch (sede) location. | |
cp_description | pt_description | character varying(100) | NO | Descriptive name of the clocking point. | |
cp_latitude_1 | pt_latitude1 | numeric(23,20) | NO | Primary latitude coordinate. | |
cp_longitude_1 | pt_longitude1 | numeric(23,20) | NO | Primary longitude coordinate. | |
cp_latitude_2 | pt_latitude2 | numeric(23,20) | NO | Secondary latitude for area-based geofencing. | |
cp_longitude_2 | pt_longitude2 | numeric(23,20) | NO | Secondary longitude for area-based geofencing. | |
cp_tolerance_meters | pt_meters_tolerance | integer | NO | Allowed distance tolerance in meters from the coordinates. | |
cp_is_enabled | pt_enabled | boolean | NO | Flag indicating if the clocking point is currently active. | |
tenant_id | tenant_id | integer | YES | Tenant identifier for data isolation. | |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON field for custom data. |
_deleted | _deleted | boolean | YES | false | Technical soft delete flag. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_clocking_points_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_clocking_points→id - Unique:
uk_clocking_points_id→cp_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_cp_branch_tenant | NO | btree | tenant_id, cp_branch_id) WHERE (_deleted = false |
idx_cp_company_tenant | NO | btree | tenant_id, cp_company_id) WHERE (_deleted = false |
idx_cp_id_tenant | NO | btree | tenant_id, cp_id) WHERE (_deleted = false |
idx_cp_tenant | NO | btree | tenant_id |
Navigation
- Back to main index
- [Back to
hrindex]../)