Skip to content

app.timesheet_approvals

TableRow level security on

Approvals given to a timesheet with the minutes approved at that moment. An approval is voided (voided_at) when the timesheet's hours change afterwards (invariant 19); only the database writes these rows.

Primary key: id

Columns of app.timesheet_approvals
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.timesheets on insert; never accepted from the caller and never changed.References app.organizations.id
timesheet_iduuidNoTimesheet approved.References app.timesheets.id
approved_byuuidNoPerson who approved; never the submitter or the worker.References app.people.id
approved_minutesintegerNoWorked minutes the approval covered, the fact the approver signed.
voided_attimestamp with time zoneYesWhen a change to the hours voided the approval; NULL while it stands.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.