Created
May 14, 2017 19:48
-
-
Save gorkamu/a3811deb82a7b6cd98b1b177797af7bc to your computer and use it in GitHub Desktop.
Modelo de datos para el objeto Álbum de nuestra API REST con Node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
var mongoose = require('mongoose'); | |
var AlbumSchema = new mongoose.Schema({ | |
title: String, | |
band: String, | |
genre: String, | |
year: String, | |
}); | |
module.exports = mongoose.model('Album', AlbumSchema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment