Lettuce and tomato have different nutrient requirements. While growing both in the same nutrient solution you can experience tomato leaves becoming yellowish on the outer edges and green in the veins. This is due to magnesium deficiency. So, either you can add more magnesium to the solution or harvest the lettuce and balance the hydroponic system for tomatoes only.