const mongoose = require("mongoose");

const CampaignsSchema = new mongoose.Schema({
  name: {
    type: String,
  },
  description: {
    type: String,
  },
  campaignCategoryId: {
    type: String,
  },
  counterBackgroundColor: {
    type: String,
  },
  imageURL: {
    type: Array,
  },
  drawType: {
    type: String,
  },
  drawDateTime: {
    type: String,
  },
  productId: {
    type: String,
  },
  prizeId: {
    type: String,
  },
  IsActive: {
    type: Boolean,
  },
  IsDelete: {
    type: Boolean,
  },
  CreatedBy: {
    type: String,
  },
  CreatedOn: {
    type: Date,
  },
  ModifiedBy: {
    type: String,
    default: null,
  },
  ModifiedOn: {
    type: Date,
    default: null,
  },
});

const Campaigns = mongoose.model("Campaigns", CampaignsSchema);

module.exports = Campaigns;
