text: import mongoose from "mongoose";
  
  const fulfillmentSchema = new mongoose.Schema({
      survey_id: {
          type: mongoose.Schema.Types.ObjectId,
          required: true,
      },
      session_id: {
          type: String,
          required: true,
      },
      start_time: {
          type: Date,
          required: true,
          default: Date.now,
      },
      client_ip: String,
      end_time: Date,
      answers: [{
          _id: false,
          question_id: {
              type: mongoose.Schema.Types.ObjectId,
              required: true,
          },
          chosen_options: [{
              _id: false,
              option_id: {
                  type: mongoose.Schema.Types.ObjectId,
                  required: true,
              },
              custom_answer: String,
          }],
          skipped: Boolean,
      }],
  });
  
  const fulfillmentModel = mongoose.model("Fulfillment", fulfillmentSchema);
  
  export { fulfillmentModel };
  