From 4006453bd4b972e6cfe1e75f6a84f6758f592221 Mon Sep 17 00:00:00 2001 From: zhang1106 <849185023@qq.com> Date: Tue, 30 Dec 2025 13:43:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(models):=20=E7=A7=BB=E9=99=A4initializ?= =?UTF-8?q?eModels=E4=B8=AD=E7=9A=84initAssociations=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将initAssociations从initializeModels中移出,由外部模块显式调用以提供更好的控制 --- backend/models/ticketIndex.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/models/ticketIndex.js b/backend/models/ticketIndex.js index 85ab86b..4d9dca8 100644 --- a/backend/models/ticketIndex.js +++ b/backend/models/ticketIndex.js @@ -182,8 +182,6 @@ const initializeModels = async () => { } }; -initAssociations(); - module.exports = { initializeModels, initAssociations,