first commit

This commit is contained in:
2026-04-11 11:51:54 +08:00
commit b12a84e388
99 changed files with 19620 additions and 0 deletions

12
backend/list-accounts.ts Normal file
View File

@@ -0,0 +1,12 @@
import * as dotenv from 'dotenv';
dotenv.config();
import pool from './src/config/database';
async function run() {
const [rows] = await pool.query<any[]>(
"SELECT username, name, role, department, position FROM user WHERE role IN ('manager','generalManager') ORDER BY role"
);
console.table(rows);
await pool.end();
}
run().catch(console.error);