🔍 PhonePe Database Tables Check


📋 Table Check Results:

✅ Table 'phonepe_orders' exists
✅ Table 'payments' exists

🔧 Payments Table Columns Check:

✅ Column 'phonepe_order_id' exists in payments table
✅ Column 'phonepe_token' exists in payments table
✅ Column 'phonepe_merchant_id' exists in payments table
✅ Column 'phonepe_environment' exists in payments table

🔧 PhonePe Orders Table Structure:

ColumnTypeNullKeyDefaultExtra
idint(11)NOPRIauto_increment
order_idvarchar(255)NOUNI
user_idvarchar(255)NOMUL
amountdecimal(10,2)NO
tokentextNO
merchant_idvarchar(100)NOMUL
statusenum('PENDING','COMPLETED','FAILED','CANCELLED')YESMULPENDING
transaction_idvarchar(255)YES
payment_responsetextYES
environmentenum('SANDBOX','PRODUCTION')YESMULPRODUCTION
expires_attimestampYES
created_attimestampYESMULcurrent_timestamp()
updated_attimestampYEScurrent_timestamp()on update current_timestamp()

📊 Summary:

🎉 All PhonePe tables and columns are properly configured!

📈 Current Data:

PhonePe payments in database: 516
PhonePe orders in database: 0

Script completed at 2025-12-08 05:20:15