From 23ca5df4a72a2d8a3ac81b72cc6a278b6cbaecf4 Mon Sep 17 00:00:00 2001 From: Backend Developer Date: Tue, 10 Mar 2026 09:38:43 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=88=9D=E5=A7=8B=E5=8C=96=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/scripts/init-db.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 backend/scripts/init-db.js diff --git a/backend/scripts/init-db.js b/backend/scripts/init-db.js new file mode 100644 index 0000000..6be25da --- /dev/null +++ b/backend/scripts/init-db.js @@ -0,0 +1,5 @@ +const db = require('../src/db'); + +console.log('初始化数据库...'); +console.log('数据库初始化完成'); +process.exit(0);