text: const mongoose = require('mongoose');
  const Income = require('../models/Income')
  const UserSchema = new mongoose.Schema({
    name: {
      type: String,
      required: true
    },
    email: {
      type: String,
      required: true,
      unique: true
    },
    password: {
      type: String,
      required: true
    },
    avatar: {
      type: String
    },
    date: {
      type: Date,
      default: Date.now
    },
    income: [
      type: mongoose.Schema.Types.ObjectId,
      ref: ''
    ]
  });
  
  module.exports = User = mongoose.model('user', UserSchema);
  