mirror of
https://github.com/Raghu-Ch/ProductsAPI.git
synced 2026-02-10 04:43:02 -05:00
First commit
This commit is contained in:
20
models/productModel.js
Normal file
20
models/productModel.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user