# Charge Configs

Contains charging configuration details for charging sessions. Associates charge events with their corresponding firmware settings, reservations, and scheduling parameters. 

**SQL:** `charge_configs`

## Schema

| Column Name        | Data Type     | Description                                                                                                   |
|:-------------------|:--------------|:--------------------------------------------------------------------------------------------------------------|
| **Primary ID**     |               |                                                                                                               |
| id                 | INTEGER       | primary key                                                                                                   |
| **Other IDs**      |               |                                                                                                               |
| charge_id          | INTEGER       | Foreign key reference to the associated charging session                                                      |
| **Timestamps**     |               |                                                                                                               |
| scheduled_start_at | TIMESTAMP_NTZ | Scheduled start time for the charging session                                                                 |
| scheduled_stop_at  | TIMESTAMP_NTZ | Scheduled end time for the charging session                                                                   |
| **Attributes**     |               |                                                                                                               |
| firmware           | VARCHAR       | Version of firmware running on the charging equipment during this session                                     |
| is_reservation     | BOOLEAN       | Indicates whether this charging session was created through a reservation. True if reserved, false if ad-hoc. |
| reservation_min    | INTEGER       | Minimum duration in minutes required for the charging reservation                                             |
| native_schedule    | VARCHAR       | Raw schedule configuration data from the charging equipment's native format                                   |

## Data inclusion criteria
This table works with `charges` table, requiring that `charge_id` is among the partner's `charges.id` records.

## Data flow 
| Upstream tables   | Downstream tables             |
|:------------------|:------------------------------|
| `charges` | `failed_charges_info` |
