{
  "query": "\nCREATE TABLE IF NOT EXISTS payment_methods (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL,\n  provider VARCHAR(100) NOT NULL,\n  type ENUM('purchase', 'redemption') NOT NULL,\n  feePercent DECIMAL(5,2) DEFAULT 0,\n  flatFee DECIMAL(10,2) DEFAULT 0,\n  minAmount DECIMAL(10,2) DEFAULT 0,\n  maxAmount DECIMAL(10,2) DEFAULT 10000,\n  isEnabled BOOLEAN DEFAULT true,\n  iconUrl TEXT,\n  description TEXT,\n  sortOrder INT DEFAULT 0,\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n);\n\nCREATE TABLE IF NOT EXISTS ai_employees (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL,\n  role VARCHAR(100) NOT NULL,\n  department VARCHAR(100) NOT NULL,\n  systemPrompt TEXT,\n  avatarUrl TEXT,\n  isActive BOOLEAN DEFAULT true,\n  tasksCompleted INT DEFAULT 0,\n  totalChats INT DEFAULT 0,\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n);\n\nCREATE TABLE IF NOT EXISTS ai_employee_chats (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  employeeId INT NOT NULL,\n  userMessage TEXT NOT NULL,\n  assistantMessage TEXT NOT NULL,\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE IF NOT EXISTS ai_employee_tasks (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  title VARCHAR(255) NOT NULL,\n  description TEXT NOT NULL,\n  assignedTo INT NOT NULL,\n  priority ENUM('low', 'medium', 'high', 'urgent') DEFAULT 'medium',\n  status ENUM('pending', 'in_progress', 'completed', 'cancelled') DEFAULT 'pending',\n  dueDate VARCHAR(50),\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n);\n\nINSERT INTO payment_methods (name, provider, type, feePercent, flatFee, minAmount, maxAmount, isEnabled, description, sortOrder) VALUES\n('Stripe', 'stripe', 'purchase', 2.9, 0.30, 0.50, 10000, true, 'Credit/debit card payments via Stripe', 1),\n('PayPal', 'paypal', 'purchase', 3.5, 0, 1.00, 5000, false, 'PayPal checkout integration', 2),\n('Apple Pay', 'apple_pay', 'purchase', 2.9, 0.30, 0.50, 10000, false, 'Apple Pay for iOS devices', 3),\n('Google Pay', 'google_pay', 'purchase', 2.9, 0.30, 0.50, 10000, false, 'Google Pay for Android devices', 4),\n('CashApp', 'cashapp', 'redemption', 0, 5.00, 10.00, 5000, true, 'CashApp instant payouts', 5),\n('Bank Transfer', 'bank_transfer', 'redemption', 0, 0, 50.00, 25000, true, 'Direct bank wire transfer (3-5 business days)', 6),\n('PayPal Withdrawal', 'paypal_withdrawal', 'redemption', 2.0, 0, 10.00, 10000, false, 'PayPal withdrawal', 7);\n\nINSERT INTO ai_employees (name, role, department, systemPrompt) VALUES\n('Alex', 'Customer Support Lead', 'Support', 'You are Alex, the Customer Support Lead at CoinKrazy casino. Help resolve player issues, answer questions about games, bonuses, and account management. Be friendly, professional, and empathetic.'),\n('Jordan', 'Fraud Analyst', 'Security', 'You are Jordan, a Fraud Analyst at CoinKrazy casino. Analyze suspicious activity, review flagged accounts, and recommend security actions. Be thorough, detail-oriented, and data-driven.'),\n('Casey', 'Marketing Strategist', 'Marketing', 'You are Casey, the Marketing Strategist at CoinKrazy casino. Create promotional campaigns, analyze player engagement, suggest retention strategies, and draft marketing copy. Be creative and results-focused.'),\n('Morgan', 'Operations Manager', 'Operations', 'You are Morgan, the Operations Manager at CoinKrazy casino. Monitor platform health, manage game configurations, oversee daily operations, and generate reports. Be systematic and proactive.');\n",
  "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway04.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 3sE2opaakiHhpCk.root --database 38mmEpDjJeLLr6ocaGW5p5 --execute \nCREATE TABLE IF NOT EXISTS payment_methods (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL,\n  provider VARCHAR(100) NOT NULL,\n  type ENUM('purchase', 'redemption') NOT NULL,\n  feePercent DECIMAL(5,2) DEFAULT 0,\n  flatFee DECIMAL(10,2) DEFAULT 0,\n  minAmount DECIMAL(10,2) DEFAULT 0,\n  maxAmount DECIMAL(10,2) DEFAULT 10000,\n  isEnabled BOOLEAN DEFAULT true,\n  iconUrl TEXT,\n  description TEXT,\n  sortOrder INT DEFAULT 0,\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n);\n\nCREATE TABLE IF NOT EXISTS ai_employees (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL,\n  role VARCHAR(100) NOT NULL,\n  department VARCHAR(100) NOT NULL,\n  systemPrompt TEXT,\n  avatarUrl TEXT,\n  isActive BOOLEAN DEFAULT true,\n  tasksCompleted INT DEFAULT 0,\n  totalChats INT DEFAULT 0,\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n);\n\nCREATE TABLE IF NOT EXISTS ai_employee_chats (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  employeeId INT NOT NULL,\n  userMessage TEXT NOT NULL,\n  assistantMessage TEXT NOT NULL,\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE IF NOT EXISTS ai_employee_tasks (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  title VARCHAR(255) NOT NULL,\n  description TEXT NOT NULL,\n  assignedTo INT NOT NULL,\n  priority ENUM('low', 'medium', 'high', 'urgent') DEFAULT 'medium',\n  status ENUM('pending', 'in_progress', 'completed', 'cancelled') DEFAULT 'pending',\n  dueDate VARCHAR(50),\n  createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n);\n\nINSERT INTO payment_methods (name, provider, type, feePercent, flatFee, minAmount, maxAmount, isEnabled, description, sortOrder) VALUES\n('Stripe', 'stripe', 'purchase', 2.9, 0.30, 0.50, 10000, true, 'Credit/debit card payments via Stripe', 1),\n('PayPal', 'paypal', 'purchase', 3.5, 0, 1.00, 5000, false, 'PayPal checkout integration', 2),\n('Apple Pay', 'apple_pay', 'purchase', 2.9, 0.30, 0.50, 10000, false, 'Apple Pay for iOS devices', 3),\n('Google Pay', 'google_pay', 'purchase', 2.9, 0.30, 0.50, 10000, false, 'Google Pay for Android devices', 4),\n('CashApp', 'cashapp', 'redemption', 0, 5.00, 10.00, 5000, true, 'CashApp instant payouts', 5),\n('Bank Transfer', 'bank_transfer', 'redemption', 0, 0, 50.00, 25000, true, 'Direct bank wire transfer (3-5 business days)', 6),\n('PayPal Withdrawal', 'paypal_withdrawal', 'redemption', 2.0, 0, 10.00, 10000, false, 'PayPal withdrawal', 7);\n\nINSERT INTO ai_employees (name, role, department, systemPrompt) VALUES\n('Alex', 'Customer Support Lead', 'Support', 'You are Alex, the Customer Support Lead at CoinKrazy casino. Help resolve player issues, answer questions about games, bonuses, and account management. Be friendly, professional, and empathetic.'),\n('Jordan', 'Fraud Analyst', 'Security', 'You are Jordan, a Fraud Analyst at CoinKrazy casino. Analyze suspicious activity, review flagged accounts, and recommend security actions. Be thorough, detail-oriented, and data-driven.'),\n('Casey', 'Marketing Strategist', 'Marketing', 'You are Casey, the Marketing Strategist at CoinKrazy casino. Create promotional campaigns, analyze player engagement, suggest retention strategies, and draft marketing copy. Be creative and results-focused.'),\n('Morgan', 'Operations Manager', 'Operations', 'You are Morgan, the Operations Manager at CoinKrazy casino. Monitor platform health, manage game configurations, oversee daily operations, and generate reports. Be systematic and proactive.');\n",
  "rows": [],
  "messages": [],
  "stdout": "",
  "stderr": "",
  "execution_time_ms": 894
}