Saltar al contenido

app.person_push_devices

TablaSeguridad a nivel de fila activa

A person's own devices for push (A101, decision 69): a Compass device's Expo push token or a Gateway browser's Web Push endpoint. They carry the pushes of an org only when the person has no device registered with that org and works with it as an external party, or the push is a marketplace match about a listing open to them (invariant 3). Members keep their per-org devices in app.push_subscriptions.

Clave primaria: id

Columnas de app.person_push_devices
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.
person_iduuidNoOwner.Hace referencia a app.people.id
platformtextNoios, android or web; web exactly when the row is a browser.
expo_push_tokentextSíExpo push token of a Compass device; null for a browser.
web_endpointtextSíWeb Push endpoint of a browser (RFC 8030), an https URL of its push service; null for a Compass device.
web_p256dhtextSíThe browser's P-256 public key for message encryption (RFC 8291), base64url; null for a Compass device.
web_authtextSíThe browser's 16-byte authentication secret (RFC 8291), base64url; null for a Compass device.
web_apptextSíApp the browser subscribed in, always Gateway, whose service worker shows the push and opens its link; null for a Compass device.
last_seen_attimestamp with time zoneNoLast time the device registered again.
revoked_attimestamp with time zoneSíWhen the device was revoked: by a push service that no longer knows it (Expo DeviceNotRegistered, Web Push 404 or 410), by the person turning browser notifications off, or because another person registered the same device.
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