Saltar al contenido

app.sync_mutations

TablaSeguridad a nivel de fila activa

Append-only replay ledger of mutations applied for offline devices (Section 13). The id is the client mutation id: a replay returns the stored result and never runs the RPC twice. Each person reads only their own rows; rows are written only by app.apply_sync_mutation.

Clave primaria: id

Columnas de app.sync_mutations
ColumnaTipoAdmite nulosDescripción
iduuidNoClient-generated mutation id, unique across every device and person.
org_iduuidNoOrg the mutation acted in.Hace referencia a app.organizations.id
person_iduuidNoPerson whose device sent the mutation.Hace referencia a app.people.id
device_idtextNoDevice identifier the client reports.
rpctextNoRPC that was called.Hace referencia a private.sync_rpcs.rpc
applied_attimestamp with time zoneNoWhen the mutation was first applied.
resultjsonbNoStored result returned to every replay: {"data": ...} on success or {"refusal": {"rule", "message"}} when refused. A provider payload for the client, an allowed JSON column.
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.