---
updatedAt: 2026-08-10T11:09:45.000Z
agentTools:
  projectIndex: https://partner-dwh.readme.io/llms.txt
---

# Reports

Table name: `reports`

These reports capture issues, feedback, and incidents
related to charge points, charge, or operator, including user-submitted reports, system-generated alerts,
and support tickets from Zendesk.

**SQL:** `reports`

## Schema

| Column Name                | Data Type      | Description                                                                                                                                   |
| :------------------------- | :------------- | :-------------------------------------------------------------------------------------------------------------------------------------------- |
| **Primary ID**             |                |                                                                                                                                               |
| id                         | INTEGER        | Primary key - unique identifier for the report                                                                                                |
| **Other IDs**              |                |                                                                                                                                               |
| user\_id                   | INTEGER        | ID of the user who created or is associated with the report                                                                                   |
| relation\_id               | INTEGER        | ID of the related entity based on the value of relation\_type (either charge point id, charge id, or operator id)                             |
| operator\_id               | INTEGER        | ID of the operator responsible for handling this report                                                                                       |
| assigned\_to\_operator\_id | INTEGER        | ID of the operator to whom this report has been assigned                                                                                      |
| resolved\_by\_user\_id     | INTEGER        | ID of the user who resolved this report                                                                                                       |
| assigned\_to\_user\_id     | INTEGER        | ID of the specific user within the operator organization assigned to this report                                                              |
| reason\_id                 | INTEGER        | ID of the report reason/category (links to report\_reasons table)                                                                             |
| **Timestamps**             |                |                                                                                                                                               |
| created\_at                | TIMESTAMP\_NTZ | Timestamp when the report was created in the system                                                                                           |
| updated\_at                | TIMESTAMP\_NTZ | Timestamp when the report was last updated                                                                                                    |
| resolved\_at               | TIMESTAMP\_NTZ | Timestamp when the report was marked as resolved                                                                                              |
| escalated\_at              | TIMESTAMP\_NTZ | Timestamp when the report was escalated to a higher priority or different team                                                                |
| assigned\_at               | TIMESTAMP\_NTZ | Timestamp when the report was assigned to an operator or user                                                                                 |
| deleted\_at                | TIMESTAMP\_NTZ | Timestamp when the report was soft-deleted (null if not deleted)                                                                              |
| **Attributes**             |                |                                                                                                                                               |
| relation\_type             | VARCHAR        | Type of entity the report relates to ('charge\_point' (most often), 'charge', or 'operator')                                                  |
| body                       | VARCHAR        | Main content/description of the report provided by the user or system                                                                         |
| admin\_note                | VARCHAR        | Internal note added by Monta administrators (not visible to operators)                                                                        |
| operator\_note             | VARCHAR        | Note added by the operator handling the report                                                                                                |
| user\_note                 | VARCHAR        | Additional note or comment from the user who created the report                                                                               |
| image1\_path               | VARCHAR        | File path or URL to the first attached image (if any)                                                                                         |
| image2\_path               | VARCHAR        | File path or URL to the second attached image (if any)                                                                                        |
| image3\_path               | VARCHAR        | File path or URL to the third attached image (if any)                                                                                         |
| state                      | VARCHAR        | Current state of the report (e.g., 'new', 'assigned\_operator', 'assigned\_monta', 'escalated\_installer', 'escalated\_hardware', 'resolved') |
| source                     | VARCHAR        | Origin of the report (e.g., 'app', 'system', 'zendesk', 'web') indicating how the report was created                                          |
| log                        | VARIANT        | JSON array containing historical log entries tracking state changes, assignments, and other events in the report lifecycle                    |

## Inclusion Criteria

* the `operator_id` or `assigned_operator_id` must exist in the operator's `operators.id` values

## Data flow

| Upstream tables | Downstream tables |
| :-------------- | :---------------- |
| `operators`     | None              |

## Alignment

### Monta API

* Aligns with the pricing objects in the Monta API [get/reports](https://docs.partner-api.monta.com/reference/get-reports) endpoint