From 23c302f266e8d766ddd9fa283aa47abc2e50aeb9 Mon Sep 17 00:00:00 2001 From: KOSASIH Date: Sun, 28 Jul 2024 19:03:41 +0700 Subject: [PATCH] Create Product.js --- .../Dapp/apps/SidraMarket/models/Product.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 blockchain_integration/sidra_chain/Dapp/apps/SidraMarket/models/Product.js diff --git a/blockchain_integration/sidra_chain/Dapp/apps/SidraMarket/models/Product.js b/blockchain_integration/sidra_chain/Dapp/apps/SidraMarket/models/Product.js new file mode 100644 index 0000000..ada5c7d --- /dev/null +++ b/blockchain_integration/sidra_chain/Dapp/apps/SidraMarket/models/Product.js @@ -0,0 +1,11 @@ +const mongoose = require('mongoose'); + +const productSchema = new mongoose.Schema({ + name: String, + description: String, + price: Number, +}); + +const Product = mongoose.model('Product', productSchema); + +module.exports = Product;