import mongoose from "mongoose";

const ProfilePictureSchema = new mongoose.Schema(
  {
    cloudinaryUrl: { type: String, required: true },
    public_id: { type: String, required: true },
    uploadedBy: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "User",
      required: true,
    },
  },
  { timestamps: true },
);

export default mongoose.model("ProfilePicture", ProfilePictureSchema);
