Skip to content

app.attendance_counts

TableRow level security on

Attendance imported from a ticketing source (Section 17) for the gate 8 measurement: tickets sold, scanned and comped per project, show, day and ticket class. A newer import of the same day and class replaces the older figures. Gross is NULL when the source does not price it, never zero.

Primary key: id

Columns of app.attendance_counts
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id
project_iduuidNoProject measured.References app.projects.id
scope_node_iduuidYesShow or other scope node of the project, when the source names one.References app.scope_nodes.id
integration_connection_iduuidNoTicketing connection the figures came from.References app.integration_connections.id
integration_sync_run_iduuidYesSync run that imported the figures, or NULL for a hand correction.References app.integration_sync_runs.id
counted_ondateNoDay the figures cover.
ticket_classtextNoTicket class as the source names it.
tickets_soldintegerNoTickets sold.
tickets_scannedintegerYesTickets scanned at the gate, when the source reports it.
compsintegerYesComplimentary tickets issued, when the source reports it.
gross_minorbigintYesGross ticket revenue in minor units of currency_code; NULL when unpriced.
currency_codecharacter(3)YesISO 4217 currency of gross_minor.References private.currencies.currency_code
deleted_attimestamp with time zoneYesSoft 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_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