Skip to content

Commit

Permalink
Create Product.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 28, 2024
1 parent 3d28e5d commit 23c302f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 23c302f

Please sign in to comment.