Files
biomedjs/app/model/tag.js
2013-06-26 03:54:22 -07:00

12 lines
278 B
JavaScript

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);