ALTER TABLE business_customer_vehicle_scope
    ADD COLUMN customer_name VARCHAR(255) NOT NULL DEFAULT '' AFTER customer_id;

ALTER TABLE business_customer_vehicle_scope
    ADD COLUMN department_id VARCHAR(64) NOT NULL DEFAULT '' AFTER project_name;

ALTER TABLE business_customer_vehicle_scope
    ADD COLUMN department_name VARCHAR(255) NOT NULL DEFAULT '' AFTER department_id;

ALTER TABLE business_customer_vehicle_scope
    ADD COLUMN responsible_user_id VARCHAR(64) NOT NULL DEFAULT '' AFTER department_name;

ALTER TABLE business_customer_vehicle_scope
    ADD COLUMN responsible_user_name VARCHAR(255) NOT NULL DEFAULT '' AFTER responsible_user_id;

CREATE INDEX idx_business_scope_department
    ON business_customer_vehicle_scope(source_version, department_id, vin);

CREATE INDEX idx_business_scope_responsible
    ON business_customer_vehicle_scope(source_version, responsible_user_id, vin);
