Initial commit: 宁夏智慧养殖监管平台

This commit is contained in:
shenquanyi
2025-08-25 15:00:46 +08:00
commit ec72c6a8b5
177 changed files with 37263 additions and 0 deletions

14
backend/check_users.js Normal file
View File

@@ -0,0 +1,14 @@
const { User } = require('./models');
User.findAll({ attributes: ['username', 'email'] })
.then(users => {
console.log('数据库中的用户:');
users.forEach(user => {
console.log(`用户名: ${user.username}, 邮箱: ${user.email}`);
});
process.exit(0);
})
.catch(err => {
console.error('查询失败:', err);
process.exit(1);
});