11 lines
242 B
JavaScript
11 lines
242 B
JavaScript
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); |