新增账号,超管体系

This commit is contained in:
eafonyang
2026-06-18 17:37:08 +08:00
parent 481261b334
commit 476da9b459
27 changed files with 1439 additions and 84 deletions
+2
View File
@@ -9,6 +9,7 @@ const sequelize = require('./config/database');
const logger = require('./config/logger');
const routes = require('./routes');
const { bodyLimit } = require('./middleware/bodyLimit');
const { ensureBootstrapSuperAdmin } = require('./services/userBootstrap');
const app = express();
@@ -42,6 +43,7 @@ async function start() {
try {
logger.info('Creating database tables...');
await sequelize.sync();
await ensureBootstrapSuperAdmin();
logger.info('Database tables created successfully');
} catch (e) {
logger.error(`Warning: Could not create tables: ${e.message}`);