Vehicles

Table name: vehicles

🛠️ Partner API Alignment Migration

✅ This table will not be impacted

Aggregates key vehicle data including identifiers, technical specifications, and ownership details filtered to specific partner teams and users.

SQL: vehicles

Schema

Column NameData TypeDescription
Primary ID
idINTEGERPrimary key
Other IDs
country_idINTEGERReferences the country where the vehicle is registered
integration_idINTEGERIdentifier linking the vehicle to its integration
model_idINTEGERReferences the specific vehicle model type
brand_idINTEGERReferences the vehicle manufacturer/brand
team_idINTEGERReferences the team that manages or owns the vehicle
user_idINTEGERReferences the primary user assigned to the vehicle
owner_idINTEGERteam_id or user_id based on owner_type
Timestamps
created_atTIMESTAMP_NTZTimestamp when the vehicle record was first created
integration_created_atTIMESTAMP_NTZTimestamp when the vehicle was first integrated
updated_atTIMESTAMP_NTZTimestamp when the vehicle record was last modified
integration_updated_atTIMESTAMP_NTZTimestamp when the vehicle integration was last modified
Attributes
identifierVARCHARExternal identifier or reference code for the vehicle
nameVARCHARDisplay name or label for the vehicle
model_nameVARCHARName of the vehicle model
brand_nameVARCHARName of the vehicle manufacturer/brand
model_variantVARCHARSpecific variant or trim level of the vehicle model
license_plateVARCHARVehicle registration plate number
capacity_kwhNUMBERBattery capacity in kilowatt-hours
default_max_battery_percentageNUMBERDefault maximum charging limit as a percentage of total battery capacity
integration_statusVARCHARCurrent status of the vehicle in the integration system
max_kw_acNUMBERMaximum AC charging power in kilowatts
max_kw_dcNUMBERMaximum DC charging power in kilowatts
owner_typeVARCHARClassification of the vehicle owner in the system (owner or team)
Filters
is_deleted_piiBOOLEANIndicates if a row has PII that have been nullified

Data Inclusion Criteria

  • is not deleted
  • if owned by a team, the team is among partner's teams
  • if owned by a user, the user is among partner's users

Data Flow

Upstream tablesUpstream tables
usersnone
teams

Alignment