Schema({
name: {
type: String,
required: true
},
category: {
type: Schema.Types.ObjectId,
ref: 'categories'
},
})
Schema({
name: {
type: String,
required: true
},
status: {
type: Boolean,
default: true
}
})