drop trigger if exists credit_before_delete;
DELIMITER // 
create trigger credit_before_delete after delete on dbr_credit
    for each row begin
        delete from dbr_credit_bd where credit_id = old.id;
    END//
DELIMITER ;