-- Quick Fix for Payment Mode Issue
-- Run this SQL in phpMyAdmin to fix the payment_mode ENUM

-- Update payment_mode ENUM to include 'cheque'
ALTER TABLE `payments` 
MODIFY COLUMN `payment_mode` enum('cash','card','upi','bank_transfer','cheque') 
CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'cash';

-- Verify the change
SHOW COLUMNS FROM `payments` LIKE 'payment_mode';
