import mongoose from "mongoose";

const VerificationSchema = new mongoose.Schema(
  {
    imageId: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "ImageDetection",
      required: true,
    },
    patientId: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "User",
      required: true,
    },
    doctorId: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "User",
      required: true,
    },
    verifiedStatus: {
      type: String,
      enum: ["verified", "not_verified"],
      default: "not_verified",
      required: true,
    },
    verificationRequested: { type: Boolean, default: false, required: true },
    // verificationRequestedAt: { type: Date, required: true },
    patientNotes: { type: String, default: "", required: true },
    doctorNotes: { type: String, default: "" },
  },
  { timestamps: true },
);

export default mongoose.model("Verification", VerificationSchema);
