Skip to content

Commit

Permalink
mobile-shopping-website
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradyuman072 authored and Pradyuman072 committed Jan 5, 2025
1 parent e134e6f commit b09822b
Show file tree
Hide file tree
Showing 107 changed files with 17,457 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const mongoose = require('mongoose');

const ProductSchema = new mongoose.Schema({
id:{type:Number},
brand: { type: String, required: true },
model: { type: String, required: true },
price: { type: Number, required: true },
description: { type: String, required: true },
imageUrl: { type: String, required: true }
});

module.exports = mongoose.model('Product', ProductSchema);
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const mongoose = require('mongoose');

const UserSchema = new mongoose.Schema({
username: { type: String, required: true },
password: { type: String, required: true },
email: { type: String, required: true },
shippingAddress: { type: String, required: true }
});

module.exports = mongoose.model('User ', UserSchema);
Loading

0 comments on commit b09822b

Please sign in to comment.