0a9588abb7
- Add pagination support to findAll (page, limit query params) - Add findByTemplateId method to service - Add GET /by-template/:templateId endpoint to controller - Service already includes CRUD for QuestionBank and QuestionBankItem
15 lines
393 B
JavaScript
15 lines
393 B
JavaScript
const Database = require('better-sqlite3');
|
|
const db = new Database('d:/workspace/AuraK/server/data/metadata.db');
|
|
|
|
try {
|
|
const tableInfo = db.prepare('PRAGMA table_info(assessment_sessions)').all();
|
|
console.log('TABLE INFO:');
|
|
tableInfo.forEach(col => {
|
|
console.log(`- ${col.name} (${col.type})`);
|
|
});
|
|
} catch (e) {
|
|
console.error(e);
|
|
} finally {
|
|
db.close();
|
|
}
|