text: const mongoose = require('mongoose');
  const Schema = mongoose.Schema;
  
  var date = new Date();
  date.setHours(date.getHours() + 3);
  
  const Post = mongoose.model('Post', new mongoose.Schema({
      user: {
          type: Schema.Types.ObjectId
      },
      title: {
          type: String,
          required: true
      },
      text: {
          type: String,
          required: true
      },
      name: {
          type: String,
      },
      avatar: {
          type: String
      },
      likes: [
          {
              user: {
                  type: Schema.Types.ObjectId
              }
          }
      ],
      comments: [
          {
              user: {
                  type: Schema.Types.ObjectId
              },
              text: {
                  type: String,
                  required: true
              },
              name: {
                  type: String
              },
              avatar: {
                  type: String
              },
              date: {
                  type: Date,
                  default: date
              }
          }
      ],
      category: {
          type: String
      },
      longitude: {
          type: String
      },
      latitude: {
          type: String
      },
      date: {
          type: Date,
          default: date
      }
  }))
  
  exports.Post = Post;