text: const mongoose = require('mongoose');
  
  const userSchema = new mongoose.Schema({
      username: {
          type: String,
          required: true,
          min: 4
      },
      email: {
          type: String,
          required: true,
          max: 255,
          min: 6
      },
      phone: {
          type: String,
          required: true,
          max: 20,
          min: 12,
      },
      password: {
          type: String,
          required: true,
          max: 1024,
          min: 6
      },
      date: {
          type: Date,
          default: Date.now
      }
  });
  
  module.exports = mongoose.model('User', userSchema);