GIF89a
import mongoose from "mongoose";
const artistBookingSchema = new mongoose.Schema(
{
artistId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Auth"
},
organizerName: {
type: String,
required: true,
trim: true,
},
eventDate: {
type: String,
required: true,
},
city: {
type: String,
required: true,
trim: true,
},
state: {
type: String,
required: true,
trim: true,
},
country: {
type: String,
required: true,
trim: true,
},
contactNumber: {
type: String,
required: true,
trim: true,
},
emailId: {
type: String,
required: true,
trim: true,
lowercase: true,
},
},
{
timestamps: true,
}
);
export const ArtistBookingModel = mongoose.model(
"ArtistBooking",
artistBookingSchema
);