Skip to content

Instantly share code, notes, and snippets.

@joesavak
Created April 30, 2018 17:45
Show Gist options
  • Save joesavak/3774feabe1a15567eba7e39864a885c6 to your computer and use it in GitHub Desktop.
Save joesavak/3774feabe1a15567eba7e39864a885c6 to your computer and use it in GitHub Desktop.
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
path = require('path');
var corruptSchema = new Schema({
corrupts: {
Country : {
type: 'String'
},
ISO3: {
type: 'String'
},
Region: {
type: 'String'
},
CPI_score_2017: {
type: 'Number'
},
CPI_score_2016: {
type: 'Number'
},
CPI_score_2015: {
type: 'Number'
},
CPI_score_2014: {
type: 'Number'
},
CPI_score_2013: {
type: 'Number'
},
CPI_score_2012: {
type: 'Number'
}
}
});
module.exports = mongoose.model('corrupt', corruptSchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment