1Payment.findAll({
2 where: {
3 DairyId: req.query.dairyid
4 },
5 attributes: {
6 exclude: ['createdAt', 'updatedAt']
7 },
8 include: {
9 model: Customer,
10 attributes:['customerName', 'phoneNumber']
11 }
12})
13