-- ============================================================================
-- Copyright (C) 2026 Alles Watt lauft
-- ============================================================================

ALTER TABLE llx_kundenkarte_equipment_type_field ADD INDEX idx_kundenkarte_equip_type_field_type (fk_equipment_type);
ALTER TABLE llx_kundenkarte_equipment_type_field ADD INDEX idx_kundenkarte_equip_type_field_active (active);

ALTER TABLE llx_kundenkarte_equipment_type_field ADD CONSTRAINT fk_kundenkarte_equip_type_field_type FOREIGN KEY (fk_equipment_type) REFERENCES llx_kundenkarte_equipment_type (rowid) ON DELETE CASCADE;
