Skip to main content

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 columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
cp_idpt_idintegerNOUnique identifier for the clocking point within a tenant.
cp_company_idpt_az_idintegerNOReference to the company (azienda) associated with this point.
cp_branch_idpt_sede_idintegerNOReference to the specific branch (sede) location.
cp_descriptionpt_descriptioncharacter varying(100)NODescriptive name of the clocking point.
cp_latitude_1pt_latitude1numeric(23,20)NOPrimary latitude coordinate.
cp_longitude_1pt_longitude1numeric(23,20)NOPrimary longitude coordinate.
cp_latitude_2pt_latitude2numeric(23,20)NOSecondary latitude for area-based geofencing.
cp_longitude_2pt_longitude2numeric(23,20)NOSecondary longitude for area-based geofencing.
cp_tolerance_meterspt_meters_toleranceintegerNOAllowed distance tolerance in meters from the coordinates.
cp_is_enabledpt_enabledbooleanNOFlag indicating if the clocking point is currently active.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON field for custom data.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_clocking_points_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_clocking_pointsid
  • Unique: uk_clocking_points_idcp_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cp_branch_tenantNObtreetenant_id, cp_branch_id) WHERE (_deleted = false
idx_cp_company_tenantNObtreetenant_id, cp_company_id) WHERE (_deleted = false
idx_cp_id_tenantNObtreetenant_id, cp_id) WHERE (_deleted = false
idx_cp_tenantNObtreetenant_id