mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Added support for tags
This commit is contained in:
11
app/model/tag.js
Normal file
11
app/model/tag.js
Normal 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);
|
Reference in New Issue
Block a user