import { MigrationInterface, QueryRunner } from 'typeorm';

export class DropOnboardingTables1784660000000 implements MigrationInterface {
  name = 'DropOnboardingTables1784660000000';

  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.query('DROP TABLE IF EXISTS `onboarding_tasks`');
    await queryRunner.query('DROP TABLE IF EXISTS `onboarding_records`');
    await queryRunner.query('DROP TABLE IF EXISTS `onboarding_plan_tasks`');
    await queryRunner.query('DROP TABLE IF EXISTS `onboarding_plan_stages`');
    await queryRunner.query('DROP TABLE IF EXISTS `onboarding_plans`');
  }

  public async down(queryRunner: QueryRunner): Promise<void> {
    // No down action needed for table purge
  }
}
