shell bypass 403
const mongoose = require('mongoose');
const { Schema } = mongoose;
const albumSchema = new Schema({
thumbnail: {
type: String,
required: true
},
title: {
type: String,
required: true
},
artist: {
type: mongoose.Schema.Types.ObjectId,
required: true,
ref: 'artist'
},
description: {
type: Array,
required: true
},
songs: {
type: mongoose.Schema.Types.ObjectId,
type: Array,
ref: 'music'
}
}, { timestamps: true });
const Album = mongoose.model('album', albumSchema)
module.exports = Album;