Commit 1d943919 by lixinming

no message

parent 1491cd7f
......@@ -37,25 +37,6 @@ export async function initMysqlModel() {
});
}
console.log();
/**初始化表关联 */
// for (let i =0; i < TablesConfig.length; i++) {
// let { tableName, association } = TablesConfig[i];
// association.forEach( (item:any) => {
// if (item) {
// let {type, check, foreignKey} = item;
// if (type == "hasMany") {
// mysqlModelMap[check].hasOne(mysqlModelMap[tableName]);
// } else if (type == "hasMany") {
// mysqlModelMap[tableName].hasMany(mysqlModelMap[check], {foreignKey});
// }
// mysqlModelMap[check].belongsTo(mysqlModelMap[tableName], {foreignKey});
// console.log(check,"建立", tableName, "连接");
// }
// });
// }
}
export { mysqlModelMap };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment