diff --git a/idol.js b/idol.js index bedbede..a17b5ec 100644 --- a/idol.js +++ b/idol.js @@ -3,11 +3,17 @@ var mongoose = require('mongoose'); var idolSchema = new Schema({ - name: String + name: { + first: String, + last: String + } }); var Idol = mongoose.model('Idol', idolSchema); var otome = new Idol({ - name: 'Otome Arisugawa' + name: { + first: 'Otome', + last: 'Arisugawa' + } }); otome.save