const CATEGORY = require('../Model/CategoryModel'); const CATEGORY_DETAIL = require('../Model/CategoryDetailModel'); module.exports = async () => { CATEGORY.hasMany(CATEGORY_DETAIL, { foreignKey: 'CATE_ID' }); CATEGORY_DETAIL.belongsTo(CATEGORY_DETAIL, { foreignKey: 'CATE_ID' }); }