const ArtistSchema = new mongoose.Schema({
firstname: {
type: String,
required: true,
maxlength: [30, 'Max allowed 30 chars'],
},
lastname: {
type: String,
maxlength: [30, 'Max allowed 30 chars'],
default: '',
},
url: {
type: String,
default:
'https://cdn.vectorstock.com/i/preview-1x/48/06/image-preview-icon-picture-placeholder-vector-31284806.jpg',
},
});
const ArtistSchema = new mongoose.Schema({
firstname: {
type: String,
required: true,
maxlength: [30, 'Max allowed 30 chars'],
},
lastname: {
type: String,
maxlength: [30, 'Max allowed 30 chars'],
default: '',
},
url: {
type: String,
default:
'https://cdn.vectorstock.com/i/preview-1x/48/06/image-preview-icon-picture-placeholder-vector-31284806.jpg',
},
});