{"size": 473, "ext": "js", "max_stars_repo_path": "server/models/note.js", "max_stars_repo_name": "KayBeSee/yal-dash", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/models/note.js", "max_issues_repo_name": "KayBeSee/yal-dash", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/models/note.js", "max_forks_repo_name": "KayBeSee/yal-dash", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.5238095238, "max_line_length": 53, "alphanum_fraction": 0.6680761099}
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

require('./chapter');
require('./user');
require('./activism_event');
require('./student');

var note_schema = new Schema({
  user: {type: ObjectId, ref: 'User'},
  parent: {
    kind: String,
    item: { type: ObjectId, refPath: 'parent.kind' }
  },
  date_created: Date,
  date_modified: Date,
  message: String
  });

module.exports = mongoose.model('Note', note_schema);