📜  sequelize 仅包含 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:38.680000             🧑  作者: Mango

代码示例1
Payment.findAll({
    where: {
        DairyId: req.query.dairyid
    },
    attributes: {
        exclude: ['createdAt', 'updatedAt']
    },
    include: {
        model: Customer,
        attributes:['customerName', 'phoneNumber']
    }
})