Added support for tags

This commit is contained in:
Dobie Wollert
2013-06-26 03:54:22 -07:00
parent b92068b6b2
commit 4ca472f2cb
9 changed files with 225 additions and 6 deletions

11
app/model/tag.js Normal file
View File

@ -0,0 +1,11 @@
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
ObjectId = Schema.ObjectId;
var tagSchema = new Schema({
_id: String,
client: { type: ObjectId, ref: 'Client' },
data: {}
}, { versionKey: false })
var Tag = module.exports = mongoose.model('Tag', tagSchema);