Saltar al contenido

app.clock_punches

TablaSeguridad a nivel de fila activa

Append-only record of clock punches as devices reported them (Section 13). The id is the client id, so a replayed punch is recognized. Written only by app.record_punch, which opens, closes and breaks time entries from them.

Clave primaria: id

Columnas de app.clock_punches
ColumnaTipoAdmite nulosDescripción
iduuidNoClient-generated punch id; a replay with the same id returns the stored punch.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
project_iduuidNoProject worked.Hace referencia a app.projects.id
membership_iduuidSíMembership of the person who punched; NULL for external crew, who punch through engagement_id.Hace referencia a app.memberships.id
shift_iduuidSíShift the punch works, when there is one.Hace referencia a app.shifts.id
time_entry_iduuidSíTime entry the punch opened, broke or closed.Hace referencia a app.time_entries.id
punch_kindapp.punch_kindNoIn, Break Start, Break End or Out.
device_timetimestamp with time zoneNoTime on the device's clock when the person punched.
monotonic_offset_msbigintSíMilliseconds on the device's monotonic clock between the punch and its upload, to correct a wrong wall clock.
received_attimestamp with time zoneNoWhen the server received the punch.
effective_attimestamp with time zoneNoTime the punch counts at: the device time when it is within the skew tolerance, otherwise the time the server received it.
latitudenumeric(9,6)SíWGS 84 latitude the device reported.
longitudenumeric(9,6)SíWGS 84 longitude the device reported.
accuracy_mnumeric(8,1)SíReported accuracy radius in meters.
geofence_iduuidSíGeofence the punch was checked against.Hace referencia a app.geofences.id
geofence_verifiedbooleanSíTrue when the server found the point inside the geofence (app.point_in_geofence), false when outside, NULL when not checked.
skew_flaggedbooleanNoTrue when the device time fell outside the skew tolerance; the entry is marked for review.
sourceapp.punch_sourceNoMobile or Kiosk.
kiosk_device_iduuidSíKiosk the punch came from; Kiosk punches only.Hace referencia a app.kiosk_devices.id
photo_uritextSíStorage path of the punch photo, when the kiosk or org takes one.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.
engagement_iduuidSíEngagement of the external person who punched. Exactly one of membership_id and engagement_id.Hace referencia a app.engagements.id