GIF89a
import mongoose from "mongoose";
const bookingArtistSchema = new mongoose.Schema(
{
name: {
type: String,
required: true,
trim: true,
},
role: {
type: String,
required: true,
trim: true,
},
type: {
type: String,
enum: ["single", "group", "recommended"],
required: true,
},
profileImages: {
type: String,
default: "",
},
},
{
timestamps: true,
}
);
export const BookingArtistModel = mongoose.model(
"BookingModel",
bookingArtistSchema
);