-- Create business_licenses table CREATE TABLE IF NOT EXISTS `business_licenses` ( `id` int(11) NOT NULL AUTO_INCREMENT, `document_type` varchar(100) NOT NULL, `document_name` varchar(255) NOT NULL, `document_path` varchar(500) NOT NULL, `expiry_date` date DEFAULT NULL, `notes` text DEFAULT NULL, `is_verified` tinyint(1) DEFAULT 0, `verification_date` datetime DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), KEY `document_type` (`document_type`), KEY `is_verified` (`is_verified`), KEY `expiry_date` (`expiry_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;