@ -56,7 +56,8 @@ module.exports = dc => {
tableName: "sale_performance",
});
const { sale } = dc.models;
sale.hasMany(salePerformance, { foreighKey: 'saleName', targetKey: "sale" })
sale.hasMany(salePerformance, { foreignKey: 'saleName', sourceKey: "sale" })
dc.models.salePerformance = salePerformance;
return salePerformance;