Saltar al contenido

app.time_entries

TablaSeguridad a nivel de fila activa

Clock-in and clock-out punches. Entries of one person never overlap (invariant 20). Every change is written to app.time_entry_audit, and a change inside an approved timesheet voids the approval (invariant 19).

Clave primaria: id

Columnas de app.time_entries
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
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 worked; NULL for external crew, who work through engagement_id.Hace referencia a app.memberships.id
shift_iduuidSíShift of the same person and project the entry works, when there is one.Hace referencia a app.shifts.id
clock_intimestamp with time zoneNoWhen work started.
clock_outtimestamp with time zoneSíWhen work stopped; NULL while clocked in.
break_minutesintegerNoUnpaid break minutes inside the entry.
sourceapp.time_entry_sourceNoWeb, Mobile or Kiosk.
kiosk_device_iduuidSíKiosk device the punch came from, for Kiosk entries.Hace referencia a app.kiosk_devices.id
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.
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
auto_closed_attimestamp with time zoneSíWhen the platform closed an entry left open longer than 16 hours; NULL when the person or a correction closed it.
needs_reviewbooleanNoTrue while an entry needs a supervisor's review, for example after an automatic close or a skewed punch.
engagement_iduuidSíEngagement of the external person who worked, when they have no membership. Exactly one of membership_id and engagement_id.Hace referencia a app.engagements.id