app.attendance_counts
TablaSeguridad a nivel de fila activa
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.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| project_id | uuid | No | Project measured.Hace referencia a app.projects.id |
| scope_node_id | uuid | Sí | Show or other scope node of the project, when the source names one.Hace referencia a app.scope_nodes.id |
| integration_connection_id | uuid | No | Ticketing connection the figures came from.Hace referencia a app.integration_connections.id |
| integration_sync_run_id | uuid | Sí | Sync run that imported the figures, or NULL for a hand correction.Hace referencia a app.integration_sync_runs.id |
| counted_on | date | No | Day the figures cover. |
| ticket_class | text | No | Ticket class as the source names it. |
| tickets_sold | integer | No | Tickets sold. |
| tickets_scanned | integer | Sí | Tickets scanned at the gate, when the source reports it. |
| comps | integer | Sí | Complimentary tickets issued, when the source reports it. |
| gross_minor | bigint | Sí | Gross ticket revenue in minor units of currency_code; NULL when unpriced. |
| currency_code | character(3) | Sí | ISO 4217 currency of gross_minor.Hace referencia a private.currencies.currency_code |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |