text: const mongoose = require('mongoose')
  
  const reqString = {
    type: String,
    required: true,
  }
  
  const scheduledSchema = new mongoose.Schema({
      date: {
          type: Date,
          required: true,
      },
      content: reqString,
      guildId: reqString,
      channelId: reqString,
      doRepeat: {
        type: Boolean,
        required: true,
      },
  })
  
  const name = 'scheduled-posts'
  
  module.exports = mongoose.model[name] || mongoose.model(name, scheduledSchema, name)