备份:修复前完整项目快照 2026-04-19

This commit is contained in:
root
2026-04-19 19:15:01 +08:00
parent 5266d7732b
commit d00f41a120
449 changed files with 89577 additions and 23251 deletions
+30
View File
@@ -0,0 +1,30 @@
const sqlite3 = require('sqlite3').verbose();
const path = require('path');
// 创建SQLite数据库连接
const dbPath = path.join(__dirname, 'company_finance.db');
const db = new sqlite3.Database(dbPath, (err) => {
if (err) {
console.error('数据库连接失败:', err.message);
} else {
console.log('SQLite数据库连接成功');
checkCustomerTable();
}
});
// 检查customers表结构
function checkCustomerTable() {
console.log('开始检查customers表结构...');
// 检查customers表结构
db.all('PRAGMA table_info(customers)', (err, rows) => {
if (err) {
console.error('检查customers表结构失败:', err.message);
} else {
console.log('customers表结构:');
rows.forEach(row => {
console.log(row.name + ' (' + row.type + ')');
});
}
});
}