-- Payment Methods Tablosu
CREATE TABLE IF NOT EXISTS `payment_methods` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `code` varchar(50) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `sort_order` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `status` (`status`),
  KEY `sort_order` (`sort_order`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Ödeme yöntemlerini ekle
INSERT INTO `payment_methods` (`name`, `code`, `image`, `status`, `sort_order`) VALUES
('Kapıda Ödeme', 'cash_on_delivery', 'cash.png', 1, 1),
('Kredi Kartı', 'credit_card', 'credit-card.png', 1, 2),
('Banka Havalesi', 'bank_transfer', 'bank-transfer.png', 1, 3),
('Havale/EFT', 'eft', 'eft.png', 1, 4);