Vehicle
Version: v1.1.0
Stored entity
Partition key pk, sort key sk • discriminator type = "VEHICLE"
Overview
Vehicle
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pk | str | ✅ | — | — |
sk | str | ✅ | — | — |
tenant_id | str | ✅ | — | — |
type | str | ❌ | VEHICLE | — |
created_at | str | ✅ | — | — |
updated_at | str | ✅ | — | — |
stock_id | str | ✅ | — | — |
is_deleted | bool | ✅ | — | — |
deleted_at | str | ❌ | — | — |
vehicle_schema_version | str | ❌ | 1.0.0 | — |
is_crushed | bool | ✅ | — | — |
crushed_date | str | ❌ | — | — |
vehicle_id | str | ✅ | — | — |
vehicle_schema_country | str | ✅ | — | — |
veh_chassis_code_raw | str | ❌ | — | — |
veh_chassis_code | str | ❌ | — | — |
veh_chassis_code_id | str | ❌ | — | — |
veh_production_year | int | ❌ | — | — |
veh_production_year_from | int | ❌ | — | — |
veh_production_year_to | int | ❌ | — | — |
veh_production_month_from | int | ❌ | — | — |
veh_production_month_to | int | ❌ | — | — |
veh_production_applicable_years | List[int] | ✅ | — | — |
veh_body_type | str | ❌ | — | — |
veh_body_type_id | str | ❌ | — | — |
veh_country_of_origin | str | ❌ | — | — |
veh_country_of_origin_id | str | ❌ | — | — |
veh_engine_code_raw | str | ❌ | — | — |
veh_engine_code | str | ❌ | — | — |
veh_engine_code_id | str | ❌ | — | — |
veh_engine_size_cc | int | ❌ | — | — |
veh_engine_size_litres | float | ❌ | — | — |
veh_engine_power | float | ❌ | — | — |
veh_engine_power_metric | str | ❌ | — | — |
veh_fuel_type | str | ❌ | — | — |
veh_fuel_type_id | str | ❌ | — | — |
veh_drive_type | str | ❌ | — | — |
veh_drive_type_id | str | ❌ | — | — |
does_vehicle_start | bool | ❌ | — | — |
is_vehicle_drivable | bool | ❌ | — | — |
is_water_damaged | bool | ❌ | — | — |
has_engine_been_tested | bool | ❌ | — | — |
odometer | int | ❌ | — | — |
odometer_metric | DistanceMetric (KM, MILES) | ❌ | — | DistanceMetric |
veh_weight | float | ❌ | — | — |
veh_weight_metric | WeightMetric (KG, LB, G) | ❌ | — | WeightMetric |
number_of_keys | int | ❌ | — | — |
registration_id | str | ❌ | — | — |
vin | str | ❌ | — | — |
veh_engine_cylinder_number | int | ❌ | — | — |
veh_engine_cylinder_number_id | str | ❌ | — | — |
veh_transmission_type | str | ❌ | — | — |
veh_transmission_type_id | str | ❌ | — | — |
veh_transmission_num_speeds | int | ❌ | — | — |
veh_transmission_num_speeds_id | str | ❌ | — | — |
veh_transmission_code | str | ❌ | — | — |
veh_brake_abs | str | ❌ | — | — |
veh_brake_abs_id | str | ❌ | — | — |
veh_steering_system | str | ❌ | — | — |
veh_steering_system_id | str | ❌ | — | — |
veh_axle_code | str | ❌ | — | — |
veh_num_of_doors | int | ❌ | — | — |
veh_num_of_doors_id | str | ❌ | — | — |
veh_exterior_color | str | ❌ | — | — |
veh_exterior_color_id | str | ❌ | — | — |
veh_exterior_color_code | str | ❌ | — | — |
veh_glass_color | str | ❌ | — | — |
veh_glass_color_id | str | ❌ | — | — |
veh_vin_first_11 | str | ❌ | — | — |
is_fire_damaged | bool | ❌ | — | — |
veh_wheel_type | str | ❌ | — | — |
veh_wheel_type_id | str | ❌ | — | — |
veh_wheel_size | str | ❌ | — | — |
veh_wheel_size_id | str | ❌ | — | — |
veh_tyre_size | str | ❌ | — | — |
has_radio | bool | ❌ | — | — |
has_cruise_control | bool | ❌ | — | — |
has_air_bags | bool | ❌ | — | — |
has_air_conditioning | bool | ❌ | — | — |
has_electric_windows | bool | ❌ | — | — |
has_central_locking | bool | ❌ | — | — |
has_sun_roof | bool | ❌ | — | — |
has_ignition_damage | bool | ❌ | — | — |
veh_seat_material | str | ❌ | — | — |
veh_seat_material_id | str | ❌ | — | — |
veh_interior_color | str | ❌ | — | — |
veh_interior_color_id | str | ❌ | — | — |
veh_interior_color_code | str | ❌ | — | — |
damages | str | ❌ | — | — |
public_comments | str | ❌ | — | — |
private_comments | str | ❌ | — | — |
purchase | Purchase | ✅ | — | Purchase |
arrival_date | str | ❌ | — | — |
arrival_status | bool | ❌ | — | — |
expenses | List[Expense] | ✅ | — | — |
location | str | ❌ | — | — |
location_id | str | ❌ | — | — |
purpose | str | ❌ | — | — |
purpose_id | str | ❌ | — | — |
title | str | ❌ | — | — |
has_battery | bool | ❌ | — | — |
has_jack | bool | ❌ | — | — |
custom_fields | List[CustomField] | ✅ | — | — |
images | List[Image] | ✅ | — | — |
videos | List[Video] | ✅ | — | — |
files | List[File] | ✅ | — | — |
inventory_date | str | ❌ | — | — |
last_stock_take_date | str | ❌ | — | — |
is_draft | bool | ✅ | — | — |
inspection_status | InspectionStatus (PENDING, DONE, NOT_REQUIRED, DRAFT) | ✅ | — | InspectionStatus |
inspection_list_template_id | str | ❌ | — | — |
inspection_list_applied_date | str | ❌ | — | — |
veh_make_id | str | ❌ | — | — |
veh_make | str | ❌ | — | — |
veh_model_id | str | ❌ | — | — |
veh_model | str | ❌ | — | — |
veh_make_model | str | ❌ | — | — |
veh_submodel | str | ❌ | — | — |
veh_submodel_id | str | ❌ | — | — |
veh_series | str | ❌ | — | — |
veh_series_id | str | ❌ | — | — |
veh_production_month | int | ❌ | — | — |
sales_channels | SalesChannels | ✅ | — | SalesChannels |
raw_veh_model | str | ❌ | — | — |
raw_veh_submodel | str | ❌ | — | — |
raw_veh_series | str | ❌ | — | — |
veh_cylinder_head_type | str | ❌ | — | — |
veh_cylinder_head_type_id | str | ❌ | — | — |
veh_engine_block_type | str | ❌ | — | — |
veh_engine_block_type_id | str | ❌ | — | — |
veh_engine_valves | str | ❌ | — | — |
veh_engine_valves_id | str | ❌ | — | — |
veh_engine_version | str | ❌ | — | — |
veh_engine_version_id | str | ❌ | — | — |
veh_aspiration | str | ❌ | — | — |
veh_aspiration_id | str | ❌ | — | — |
Embedded models
Models embedded in the fields above — shown inline; they have no separate page.
Purchase — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
purchase_source | str | ❌ | — | — |
purchase_source_id | str | ❌ | — | — |
auction_id | str | ❌ | — | — |
auction | str | ❌ | — | — |
seller_name | str | ❌ | — | — |
seller_email | str | ❌ | — | — |
seller_phone | str | ❌ | — | — |
deliery_method | str | ❌ | — | — |
deliery_method_id | str | ❌ | — | — |
is_original_pickup_address | bool | ❌ | — | — |
address | VehicleAddress | ✅ | — | Address |
seller_license_front | File | ❌ | — | File |
seller_license_back | File | ❌ | — | File |
seller_signature | File | ❌ | — | File |
payment_type | str | ❌ | — | — |
payment_type_id | str | ❌ | — | — |
payment_reference | str | ❌ | — | — |
purchase_date | str | ❌ | — | — |
purchase_price | float | ❌ | — | — |
has_stolen_check | bool | ❌ | — | — |
marketing_source | str | ❌ | — | — |
marketing_source_id | str | ❌ | — | — |
purchase_id | str | ❌ | — | — |
purchase_display_id | str | ❌ | — | — |
Change history
v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
VehicleAddress — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
country | str | ❌ | — | — |
city | str | ❌ | — | — |
address_line_1 | str | ❌ | — | — |
address_line_2 | str | ❌ | — | — |
region | str | ❌ | — | — |
postal_code | str | ❌ | — | — |
Change history
v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
File — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | str | ✅ | — | — |
is_private | bool | ✅ | — | — |
name | str | ✅ | — | — |
Change history
v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
Expense — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
amount | float | ✅ | — | — |
contact | str | ❌ | — | — |
contact_id | str | ❌ | — | — |
reference | str | ❌ | — | — |
currency | str | ❌ | — | — |
description | str | ❌ | — | — |
date | str | ❌ | — | — |
expense_id | str | ✅ | — | — |
expense_display_id | str | ✅ | — | — |
type | str | ❌ | EXPENSE | — |
created_at | str | ✅ | — | — |
updated_at | str | ✅ | — | — |
Change history
v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
CustomField — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
name | str | ✅ | — | — |
value | str | ✅ | — | — |
Change history
v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
Image — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
order | int | ✅ | — | — |
url | str | ✅ | — | — |
is_private | bool | ✅ | — | — |
Change history
v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
Video — v1.0.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
order | int | ✅ | — | — |
url | str | ✅ | — | — |
is_private | bool | ✅ | — | — |
Change history
v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
SalesChannels — v1.1.0
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
web_shop_id | str | ❌ | — | — |
web_shop_status | WebShopStatus (LISTED, NOT_LISTED) | ❌ | — | WebShopStatus |
wallaby_part_id | str | ❌ | — | — |
wallaby_part_status | WallabyPartStatus (LISTED, NOT_LISTED) | ❌ | — | WallabyPartStatus |
tui_part_id | str | ❌ | — | — |
tui_part_status | TuiPartStatus (LISTED, NOT_LISTED) | ❌ | — | TuiPartStatus |
trade_me_id | str | ❌ | — | — |
trade_me_status | TradeMeStatus (LISTED, NOT_LISTED, WITHDRAWN, EXPIRED, SOLD) | ❌ | — | TradeMeStatus |
parts_world_status | PartsWorldStatus (LISTED, NOT_LISTED) | ❌ | — | PartsWorldStatus |
gumtree_id | str | ❌ | — | — |
gumtree_status | GumtreeStatus (LISTED, NOT_LISTED) | ❌ | — | GumtreeStatus |
facebook_marketplace_id | str | ❌ | — | — |
facebook_marketplace_status | FacebookMarketplaceStatus (LISTED, NOT_LISTED) | ❌ | — | FacebookMarketplaceStatus |
Change history
v1.1.0· 2025-10-18 · Cian (shared account) · Added optional fieldtui_part_id.; Added optional fieldtui_part_status.; Added optional fieldwallaby_part_id.; Added optional fieldwallaby_part_status.; Fieldfacebook_marketplace_statusdefault changed: FacebookMarketplaceStatus.NOT_LISTED → None.; Fieldgumtree_statusdefault changed: GumtreeStatus.NOT_LISTED → None.; Fieldparts_world_statusdefault changed: PartsWorldStatus.NOT_LISTED → None.; Fieldtrade_me_statusdefault changed: TradeMeStatus.NOT_LISTED → None.; Fieldweb_shop_statusdefault changed: WebShopStatus.NOT_LISTED → None. (91560176a)v1.0.0· 2025-09-02 · Cian (shared account) · Initial version. (1eaebf801)
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| Event | EventBridge | VehicleCreated | src/purchase_handle_vehicle_created.py |
Change history
v1.1.0 · 2025-09-06 · Cian (shared account) · f9c41793f
fx
- Added optional field
inspection_list_applied_date. - Added optional field
inspection_list_template_id.
v1.0.0 · 2025-09-02 · Cian (shared account) · 1eaebf801
fx
- Initial version.
Generated from
dismantly-backend/Microservices/Purchase/dependencies/models.py. Do not edit by hand.