'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * SoundcloudSearch Schema
 */
var SoundcloudSearchSchema = new Schema({
	// SoundcloudSearch model fields   
	// ...
	search: {
		type: String,
		required: 'There must be a search term',
		trim: true
	},
	result: {
		type: Object
	},
	created: {
		type: Date,
		default: Date.now
	}
});

mongoose.model('SoundcloudSearch', SoundcloudSearchSchema);