import mongoose from "mongoose";

const recordingSchema = new mongoose.Schema(
  {
    bookingId: {
      type: mongoose.Schema.Types.ObjectId,
      ref: "Booking",
      required: true,
    },

    videoUrl: {
      type: String,
      required: true,
    },

    accessLevel: {
      type: String,
      enum: ["private", "student-only"],
      default: "student-only",
    },
  },
  { timestamps: true },
);

export const Recording = mongoose.model("Recording", recordingSchema);
