GIF89a
import mongoose from "mongoose";
const writerMusicBookingSchema = new mongoose.Schema(
{
artistId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Auth",
required: true,
},
serviceType: {
type: String,
enum: ["writer", "music"],
required: true,
},
name: {
type: String,
required: true,
trim: true,
},
contactNumber: {
type: String,
required: true,
trim: true,
},
songCategory: { //ROMANTIC, DEVOTIONAL
type: String,
required: true,
trim: true,
},
songType: { // SOLO, DUET
type: String,
required: true,
trim: true,
},
language: {
type: String,
required: true,
trim: true,
},
status: {
type: String,
enum: ["pending", "approved", "rejected"],
default: "pending",
},
},
{
timestamps: true,
}
);
export const WriterMusicBookingModel = mongoose.model(
"WriterMusicBooking",
writerMusicBookingSchema
);