text: const mongoose = require('mongoose');
  
  // ----------------------
  // USERS
  // ----------------------
  const userSchema = new mongoose.Schema({
    // required for authentication: DO NOT TOUCH Or You May Get Punched
    email:     { type: String, required: true },
    password:  { type: String, required: true },
    // x..x..x..x..x..x..x..x..x..x..x..x..x..x..x..x..x..x..x..x..x..x
    
     // example of optional fields
    name:      { type: String },
    createdAt: { type: Date, default: Date.now }
  
  })
  
  const taskSchema = new mongoose.Schema({
  	taskName: { type: String, required: true },
  	taskComplete: {type: Boolean, required: true, default: false },
    userId: {type: String, required: true},
  	createdAt: { type: Date, default: Date.now }
  })
  
  module.exports = {
    User: mongoose.model('User', userSchema),
    Task: mongoose.model('Task', taskSchema)
  }
  