text: "use strict";
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  const mongoose_1 = __importDefault(require("mongoose"));
  const Schema = mongoose_1.default.Schema;
  const newsSchema = new Schema({
      slug: {
          type: String,
          required: true
      },
      date: {
          type: Date,
          required: true
      },
      datestamp: {
          type: String,
          required: true
      },
      title: {
          type: String,
          required: false
      },
      articleUrl: {
          type: String,
          required: true
      },
      imageUrl: {
          type: String,
          required: true
      },
      categories: [{
              type: String,
              required: true
          }],
      description: {
          type: String,
          required: true
      },
      rawDescription: {
          type: String,
          required: true
      },
      provider: {
          type: Schema.Types.ObjectId,
          ref: 'Provider',
          required: true
      }
  });
  exports.default = mongoose_1.default.model('News', newsSchema);
  //# sourceMappingURL=news.js.map