CREATE TABLE `cities` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `province_id` int(10) unsigned NOT NULL,
  `name` varchar(50) NOT NULL,
  `slug` varchar(50) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `delivery_available` tinyint(1) NOT NULL DEFAULT 1,
  `delivery_fee` bigint(20) unsigned DEFAULT NULL COMMENT 'Override delivery fee for this city',
  PRIMARY KEY (`id`),
  KEY `idx_province` (`province_id`),
  CONSTRAINT `fk_cities_province` FOREIGN KEY (`province_id`) REFERENCES `provinces` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
