import { db } from '../src/db/knex.js'; const TABLES = [ 'audit_log', 'email_log', 'survey_responses', 'survey_tokens', 'survey_definitions', 'signatures', 'resume_tokens', 'applications', 'admin_users', ]; export async function truncateTables() { await db.raw('SET FOREIGN_KEY_CHECKS = 0'); for (const table of TABLES) { await db(table).truncate(); } await db.raw('SET FOREIGN_KEY_CHECKS = 1'); }