/**
 * Database Configuration - 数据库配置
 */

module.exports = {
  // 默认连接配置
  connection: {
    host: process.env.MYSQL_HOST || '172.22.222.111',
    port: parseInt(process.env.MYSQL_PORT || '3306'),
    user: process.env.MYSQL_USER || 'windsurf-auto-register',
    password: process.env.MYSQL_PASSWORD || 'Qichen5210523',
    database: process.env.MYSQL_DATABASE || 'windsurf-auto-register',
    waitForConnections: true,
    connectionLimit: 10,
    queueLimit: 0,
    enableKeepAlive: true,
    keepAliveInitialDelay: 0
  },
  
  // 表名配置
  tables: {
    accounts: 'windsurf_accounts'
  }
};
