/**
 * Seed only the demo dealers used for Form 16 non-submitted list.
 * Run this to populate the dealers table with DEMO-NOSUB-001, 002, 003 so the
 * "Non-submitted Dealers" page shows data (select FY 2024-25 and Q1).
 *
 * Usage: npm run seed:demo-dealers
 */

import { sequelize } from '../config/database';
import logger from '../utils/logger';
import { ensureDemoNonSubmittedDealers } from './seed-demo-requests';

async function main() {
  await sequelize.authenticate();
  await ensureDemoNonSubmittedDealers();
  logger.info('[Seed Demo Dealers] Done. Open Non-submitted Dealers, select FY 2024-25 and Q1 to see them.');
}

main()
  .then(() => process.exit(0))
  .catch((err) => {
    logger.error('[Seed Demo Dealers] Failed:', err);
    process.exit(1);
  });
