protected function createTable($schema)
    {
        /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */
        $rs = ServiceManager::handleRequest(
            $this->service->getName(),
            Verbs::POST,
            '_schema',
            [],
            [],
            ResourcesWrapper::wrapResources($schema)
        );

        if (in_array($rs->getStatusCode(), [HttpStatusCodes::HTTP_OK, HttpStatusCodes::HTTP_CREATED])) {
            return true;
        }

        $content = $rs->getContent();
        Log::error(
            'Failed to create table for importing CSV data: ' .
            (is_array($content) ? print_r($content, true) : $content)
        );
        throw new InternalServerErrorException('Failed to create table for importing CSV data. See log for details.');
    }