var mongoose = require('mongoose'); var Schema = mongoose.Schema; var gameSchema = new Schema({ 'title': String, 'released': String, 'webImg': String, 'code': String }); module.exports = mongoose.model('game', gameSchema);