I want to create a products table which has information about all the household appliances like refrigerator, Air cooler, Television e.t.c. I have created schema something like this.
var productSchema = mongooseDB.Schema({
Brand: {type: String, required: true},
categoryId: Number,
Color: String,
Type: String,
Price: Number,
Size: Number
});
But the problem is each product has different attributes. So i cannot think of any generic schema. How would I go with this ? Or should I create a seperate table for each specific product ?