Skip to content

Instantly share code, notes, and snippets.

@christophetd
Created April 4, 2016 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophetd/021ad76034fcc043b7d21e67d006f0c5 to your computer and use it in GitHub Desktop.
Save christophetd/021ad76034fcc043b7d21e67d006f0c5 to your computer and use it in GitHub Desktop.
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var songSchema = new Schema({
title: String,
artist: String,
album: String,
thumbnailUrl: String,
mood: {
type: Schema.Types.ObjectId,
ref: 'Mood'
}
});
module.exports = mongoose.model('Song', songSchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment