text: const mongoose = require('mongoose');
  
  // Task schema.
  const taskSchema = new mongoose.Schema({
  	userId: {type: mongoose.Schema.Types.ObjectId, required: true},
  	createDate: {type: Date, required: true},
  	updateDate: Date,
  	completeDate: Date,
  	priority: {type: String, enum: ['low', 'normal', 'high'], required: true, lowercase: true},
  	title: {type: String, required: true},
  	text: String
  });
  
  // Module export definitions.
  module.exports = mongoose.model('Task', taskSchema);
  