Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- var mongoose = require('mongoose'),
- Schema = mongoose.Schema;
- var TagSchema = new Schema({
- name: String,
- connectedNotes: [{type: Schema.Types.ObjectId, ref: 'Note'}],
- });
- module.exports = mongoose.model('Tag', TagSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement