GIF89a php
Current File : /home/viralhoga/app_viralhoga/src/models/programBooking.model.js
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
);