Skip to content

Instantly share code, notes, and snippets.

@gorkamu
Created May 14, 2017 19:48
Show Gist options
  • Save gorkamu/a3811deb82a7b6cd98b1b177797af7bc to your computer and use it in GitHub Desktop.
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
'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