docs(website): 重构关于页面布局和内容
- 更新页面布局,优化导航栏和面包屑导航 - 重新组织页面内容,突出公司使命和价值观 - 添加发展历程和核心团队介绍 - 更新合作伙伴展示方式 - 调整页脚内容,增加社交媒体链接
This commit is contained in:
17
backend/src/scripts/syncDatabase.js
Normal file
17
backend/src/scripts/syncDatabase.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const sequelize = require('../config/database');
|
||||
|
||||
// 同步数据库模型
|
||||
const syncDatabase = async () => {
|
||||
try {
|
||||
await sequelize.sync({ alter: true });
|
||||
console.log('数据库模型同步成功');
|
||||
} catch (error) {
|
||||
console.error('数据库模型同步失败:', error);
|
||||
} finally {
|
||||
// 关闭数据库连接
|
||||
await sequelize.close();
|
||||
}
|
||||
};
|
||||
|
||||
// 执行同步
|
||||
syncDatabase();
|
||||
Reference in New Issue
Block a user