Skip to main content

hr.geolocations

Schema: hr
English table: hr.geolocations
Italian original table: hr.geolocalizzazione
Description: Geolocation tracking records. Captures GPS coordinates, addresses, and optional images for start/end points of activities such as clock-in/clock-out events, field work, client visits, or delivery routes. Used for attendance verification, field workforce management, and activity tracking.

Overview

  • Columns: 15
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 0
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key (internal surrogate ID).
geo_idgeo_idintegerNOBusiness identifier for the geolocation record (unique within tenant).
geo_timecard_entry_idgeo_lat_startintegerNOAssociated timecard/attendance entry identifier (references time tracking system, e.g., pres.timbra table).
geo_report_idgeo_lon_startintegerNOAssociated report or expense claim identifier (references activity reports or expense reimbursement records).
geo_start_latitudegeo_address_startnumeric(12,8)NOStarting point latitude coordinate (decimal degrees, e.g., 45.4642035 for Milan).
geo_start_longitudegeo_lat_endnumeric(12,8)NOStarting point longitude coordinate (decimal degrees, e.g., 9.1899814 for Milan).
geo_start_addressgeo_lon_endtextNOReverse-geocoded address for the starting point (e.g., "Via Roma 123, Milano, MI").
geo_end_latitudegeo_address_endnumeric(12,8)NOEnding point latitude coordinate (decimal degrees).
geo_end_longitudegeo_name_img_startnumeric(12,8)NOEnding point longitude coordinate (decimal degrees).
geo_end_addressgeo_name_img_endtextNOReverse-geocoded address for the ending point.
geo_start_image_namegeo_tim_idtextNOFilename or path of image captured at the starting point (e.g., photo taken during clock-in for verification).
geo_end_image_namegeo_rendcont_idtextNOFilename or path of image captured at the ending point (e.g., photo taken during clock-out).
tenant_idtenant_idintegerYESTenant identifier for multi-tenancy (references cloud._tenant).
colcustomcolcustomjsonbYES'{}'::jsonbJSON object for custom fields and tenant-specific extensions.
_deleted_deletedbooleanYESfalseSoft delete flag for technical deletion (not functional cancellation).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_geo_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_geolocationsid
  • Unique: uk_geolocations_geo_id_tenantgeo_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_geo_tenantNObtreetenant_id
idx_geo_tenant_geo_idNObtreetenant_id, geo_id) WHERE (_deleted = false
idx_geo_tenant_reportNObtreetenant_id, geo_report_id) WHERE (_deleted = false
idx_geo_tenant_timecardNObtreetenant_id, geo_timecard_entry_id) WHERE (_deleted = false