> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# metering_log table

> Metering log table

## metering\_log Table (501)

Metering log table

## Fields

| Name                      | Description                           | Type                                                    | Nullable |
| ------------------------- | ------------------------------------- | ------------------------------------------------------- | :------: |
| metering\_log\_id         | Primary key                           | PK                                                      |    No    |
| table\_id                 | Which table the event relates to      | TableNumber                                             |    Yes   |
| record\_id                | The record within that table          | RecordId                                                |    Yes   |
| event\_type               | Type of the metering event            | Enum [MeteringEventType](./enums/meteringeventtype.mdx) |    No    |
| status                    | Status of the metering event          | Enum [MeteringStatus](./enums/meteringstatus.mdx)       |    No    |
| registered                | Registered when                       | UtcDateTime                                             |    No    |
| registered\_associate\_id | Registered by whom                    | FK [associate](./associate.mdx)                         |    No    |
| updated                   | Last updated when                     | UtcDateTime                                             |    No    |
| updated\_associate\_id    | Last updated by whom                  | FK [associate](./associate.mdx)                         |    No    |
| updatedCount              | Number of updates made to this record | UShort                                                  |    No    |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/metering_log.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=2c0c27bcfe1f0483e4e741621d69bfbb" alt="metering_log table relationship diagram" width="419" height="59" data-path="media/loc/en/database/tables/metering_log.png" />

## Indexes

| Fields                             | Types                       | Description |
| ---------------------------------- | --------------------------- | ----------- |
| table\_id, record\_id, event\_type | TableNumber, RecordId, Enum | Unique      |

## Relationships

| Table                    | Description                                                        |
| ------------------------ | ------------------------------------------------------------------ |
| [associate](./associate) | Employees, resources and other users - except for External persons |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [Enum values for MeteringStatus](/en/database/tables/enums/meteringstatus.md)
- [Enum values for MeteringEventType](/en/database/tables/enums/meteringeventtype.md)
- [log_events table](/en/database/tables/log-events.md)
- [log_debug table](/en/database/tables/log-debug.md)
- [ticket_log table](/en/database/tables/ticket-log.md)
- [ticket_log_action table](/en/database/tables/ticket-log-action.md)
