-- Create customer_principals table CREATE TABLE IF NOT EXISTS `customer_principals` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `customer_application_id` INT NOT NULL, `name` VARCHAR(255) NOT NULL, `designation` VARCHAR(255) NOT NULL, `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, FOREIGN KEY (`customer_application_id`) REFERENCES `customer_applications`(`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;