/**
 * Database migration configuration
 * Edit this file directly to configure migration settings
 */

// PostgreSQL Configuration
export const postgresConfig = {
  connectionString: 'postgresql://postgres:meatfarmer_master_password@raw.freshyo.in:7447/meatfarmer',
  // connectionString: 'postgresql://postgres:meatfarmer_master_password@57.128.212.174:7447/meatfarmer',
  ssl: false as boolean | { rejectUnauthorized: boolean },
  schema: 'mf',
};

// SQLite Configuration
export const sqliteConfig = {
  filename: './data/migrated.db',
};

// Migration Settings
export const migrationConfig = {
  // Batch size for bulk inserts (to avoid memory issues)
  batchSize: 1000,
  
  // Enable/disable table truncation before migration
  truncateBeforeInsert: true,
  
  // Tables to exclude from migration
  excludedTables: [] as string[],
  
  // Tables to include (if empty, includes all)
  includedTables: [] as string[],
};

// Logging
export const logConfig = {
  verbose: true,
  logFile: './migration.log',
};
