Photosynthetic bacteria are producers, disease-causing bacteria are consumers, and spoilage bacteria are detritivores.
Photosynthetic bacteria are producers as they use sunlight to produce energy for themselves and fix carbon dioxide for growth. Disease-causing bacteria are generally considered as consumers as they obtain energy by causing harm to other organisms. Spoilage bacteria, which decompose living matter, are detritivores as they break down organic matter into nutrients for plants.
https://brainly.com/question/3520757