lib/columns-to-model.js
function pickle(value, options) {
  options = options || {};
  // Tests
  var floatTest = /^(-|)[\d,]+.\d+$/g;
  var intTest = /^\d+$/g;
  var booleanTest = /^(true|false)$/g;
  var dateTest = /^\d{1,2}\/\d{1,2}\/\d{2,4}$/g;
  var datetimeTest = /^\d{1,2}\/\d{1,2}\/\d{2,4}\s+\d{1,2}:\d{1,2}(:\d{1,2}|)(\s+|)(am|pm|)$/gi;

  // Test values
  if ((options.datetimeFormat && moment(value, options.datetimeFormat, true).isValid()) || datetimeTest.test(value)) {
    return "DATE";
  }
  if ((options.dateFormat && moment(value, options.dateFormat, true).isValid()) || dateTest.test(value)) {
    return "DATEONLY";
  }
  if (_.isInteger(value) || intTest.test(value)) {
    return "INTEGER";
  }
  if ((_.isFinite(value) && !_.isInteger(value)) || floatTest.test(value)) {
    return "FLOAT";
  }
  if (_.isBoolean(value) || booleanTest.test(value)) {
    return "BOOLEAN";
  }

  return "STRING";
}
function pickle(value, options) {
  options = options || {};
  // Tests
  var floatTest = /^(-|)[\d,]+.\d+$/g;
  var intTest = /^\d+$/g;
  var booleanTest = /^(true|false)$/g;
  var dateTest = /^\d{1,2}\/\d{1,2}\/\d{2,4}$/g;
  var datetimeTest = /^\d{1,2}\/\d{1,2}\/\d{2,4}\s+\d{1,2}:\d{1,2}(:\d{1,2}|)(\s+|)(am|pm|)$/gi;

  // Test values
  if ((options.datetimeFormat && moment(value, options.datetimeFormat, true).isValid()) || datetimeTest.test(value)) {
    return "DATE";
  }
  if ((options.dateFormat && moment(value, options.dateFormat, true).isValid()) || dateTest.test(value)) {
    return "DATEONLY";
  }
  if (_.isInteger(value) || intTest.test(value)) {
    return "INTEGER";
  }
  if ((_.isFinite(value) && !_.isInteger(value)) || floatTest.test(value)) {
    return "FLOAT";
  }
  if (_.isBoolean(value) || booleanTest.test(value)) {
    return "BOOLEAN";
  }

  return "STRING";
}
function pickle ( value , options ) { options = options || { } ; // Tests var floatTest = / ^(-|)[\d,]+.\d+$ / g ; var intTest = / ^\d+$ / g ; var booleanTest = / ^(true|false)$ / g ; var dateTest = / ^\d{1,2}\/\d{1,2}\/\d{2,4}$ / g ; var datetimeTest = / ^\d{1,2}\/\d{1,2}\/\d{2,4}\s+\d{1,2}:\d{1,2}(:\d{1,2}|)(\s+|)(am|pm|)$ / gi ; // Test values if ( ( options . datetimeFormat && moment ( value , options . datetimeFormat , true ) . isValid ( ) ) || datetimeTest . test ( value ) ) { return "DATE" ; } if ( ( options . dateFormat && moment ( value , options . dateFormat , true ) . isValid ( ) ) || dateTest . test ( value ) ) { return "DATEONLY" ; } if ( _ . isInteger ( value ) || intTest . test ( value ) ) { return "INTEGER" ; } if ( ( _ . isFinite ( value ) && ! _ . isInteger ( value ) ) || floatTest . test ( value ) ) { return "FLOAT" ; } if ( _ . isBoolean ( value ) || booleanTest . test ( value ) ) { return "BOOLEAN" ; } return "STRING" ; }
Find type.  Should return base Sequelize type
Find type . Should return base Sequelize type