Skip to content

app.activity_events

TablePartitioned by monthRow level security on

User-facing activity feed (Section 7.3): one row per domain event with the person who caused it, kept 18 months in monthly partitions. What happened is read from the domain event, never restated.

Primary key: id, created_at

Columns of app.activity_events
ColumnTypeNullableDescription
iduuidNoActivity id, UUID v7.
org_iduuidNoOwning org, derived from app.domain_events on insert; never accepted from the caller and never changed.References app.organizations.id
domain_event_iduuidNoDomain event the activity shows.References app.domain_events.id
actor_person_iduuidYesPerson whose action raised the event, or null for services and scheduled jobs.References app.people.id
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.