mirror of
https://github.com/Raghu-Ch/ProductsAPI.git
synced 2026-02-10 04:43:02 -05:00
20 lines
442 B
JavaScript
20 lines
442 B
JavaScript
var mongoose = require('mongoose');
|
|
var Schema = mongoose.Schema;
|
|
|
|
var productModel = new Schema({
|
|
productName: String,
|
|
productCode: String,
|
|
category: String,
|
|
brand: String,
|
|
sku: String,
|
|
resolution: String,
|
|
type: String,
|
|
technology: String,
|
|
series: String,
|
|
description: String,
|
|
price: Number,
|
|
discount: String,
|
|
imageUrl: String
|
|
});
|
|
|
|
module.exports = mongoose.model('Product', productModel); |