protected function typeMapper($type, $length = null) { $mapper = ["text" => "varchar(" . ($length > 0 ? $length : "190") . ")", "number" => "double", "bool" => "tinyint(1)"]; return $mapper[$type]; }