buildPropertyType(columnDefinition, options) {
    const type = columnDefinition.dataType.toUpperCase();
    switch (type) {
      case 'CHAR':
      case 'VARCHAR':
      case 'XML':
        return 'String';
      case 'TINYBLOB':
      case 'MEDIUMBLOB':
      case 'LONGBLOB':
      case 'BLOB':
      case 'BINARY':
      case 'VARBINARY':
      case 'BIT':
        return 'String';
      case 'SMALLINT':
      case 'INTEGER':
      case 'BIGINT':
      case 'DECIMAL':
      case 'NUMERIC':
      case 'DECFLOAT':
      case 'REAL':
      case 'DOUBLE':
        return 'Number';
      case 'TIME':
      case 'TIMESTAMP':
      case 'DATETIME':
        return 'Date';
      default:
        return 'String';
    }
  }
/**
   * Map the property type from database to loopback
   * @param {Object} columnDefinition The columnDefinition of the table/schema
   * @param {Object} options The options for the connector
   */
Map the property type from database to loopback
@param {Object} columnDefinition The columnDefinition of the table/schema
@param {Object} options The options for the connector
Map the property type from database to loopback @param { Object } columnDefinition The columnDefinition of the table / schema @param { Object } options The options for the connector
buildPropertyType(columnDefinition, options) {
    const type = columnDefinition.dataType.toUpperCase();
    switch (type) {
      case 'CHAR':
      case 'VARCHAR':
      case 'XML':
        return 'String';
      case 'TINYBLOB':
      case 'MEDIUMBLOB':
      case 'LONGBLOB':
      case 'BLOB':
      case 'BINARY':
      case 'VARBINARY':
      case 'BIT':
        return 'String';
      case 'SMALLINT':
      case 'INTEGER':
      case 'BIGINT':
      case 'DECIMAL':
      case 'NUMERIC':
      case 'DECFLOAT':
      case 'REAL':
      case 'DOUBLE':
        return 'Number';
      case 'TIME':
      case 'TIMESTAMP':
      case 'DATETIME':
        return 'Date';
      default:
        return 'String';
    }
  }
buildPropertyType ( columnDefinition , options ) { const type = columnDefinition . dataType . toUpperCase ( ) ; switch ( type ) { case 'CHAR' : case 'VARCHAR' : case 'XML' : return 'String' ; case 'TINYBLOB' : case 'MEDIUMBLOB' : case 'LONGBLOB' : case 'BLOB' : case 'BINARY' : case 'VARBINARY' : case 'BIT' : return 'String' ; case 'SMALLINT' : case 'INTEGER' : case 'BIGINT' : case 'DECIMAL' : case 'NUMERIC' : case 'DECFLOAT' : case 'REAL' : case 'DOUBLE' : return 'Number' ; case 'TIME' : case 'TIMESTAMP' : case 'DATETIME' : return 'Date' ; default : return 'String' ; } }
Map the property type from database to loopback
 @param {Object} columnDefinition The columnDefinition of the table/schema
 @param {Object} options The options for the connector
Map the property type from database to loopback @param { Object } columnDefinition The columnDefinition of the table / schema @param { Object } options The options for the connector