mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
12 lines
278 B
JavaScript
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);
|