-- liquibase formatted sql

-- changeset fpsms:20260507_idx_do_deleted_status_eta_id
-- precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.statistics WHERE table_schema = DATABASE() AND table_name = 'delivery_order' AND index_name = 'idx_do_deleted_status_eta_id'

CREATE INDEX idx_do_deleted_status_eta_id
    ON delivery_order (deleted, status, estimatedArrivalDate, id);

-- changeset fpsms:20260507_idx_do_deleted_shop_eta_id
-- precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.statistics WHERE table_schema = DATABASE() AND table_name = 'delivery_order' AND index_name = 'idx_do_deleted_shop_eta_id'

CREATE INDEX idx_do_deleted_shop_eta_id
    ON delivery_order (deleted, shopId, estimatedArrivalDate, id);

-- changeset fpsms:20260507_idx_truck_TruckLanceCode
-- precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.statistics WHERE table_schema = DATABASE() AND table_name = 'truck' AND index_name = 'idx_truck_TruckLanceCode'

CREATE INDEX idx_truck_TruckLanceCode
    ON truck (TruckLanceCode);
