Please enable JavaScript.
Coggle requires JavaScript to display documents.
E-commerse - Coggle Diagram
E-commerse
Controllers
user
getUserById :!!:
getAllUser
updateUser
deleteUser
getUser
auth
signin
signout
isAdmin :!!:
isAuthenticated :!!:
signup
category
getCategoryById :!!:
getCategory
updateCatogory
getAllCategory
deleteCategory
createCategory
product
getProductById :!!:
getProduct
getAllProduct
getProductsByCategory
updateProduct
deleteProduct
createProduct
Payment
order
getOrderById :!!:
getAllOrders
getOrder
createOrder
deleteOrder
Routes
auth
/signUp POST (create)
/signin POST
/signout
user
userId PARAM (parameterExtractor) :star:
/user/:userId GET (read)
/user/update/:userId PUT (update)
/user/delete/:userId DELETE (delete)
/getalluser/:userId (getAll)
category
categoryId PARAM (parameterExtractor) :star:
/category/create/:userId POST (create)
/category/:categoryId GET (read)
/category/update/:categoryId/:userId PUT (update)
/category/delete/:categoryId/:userId DELETE (delete)
/getallcategory/:userId (getAll)
product
productId PARAM (parameterExtractor) :star:
/product/:productId GET (read)
/getallproduct (getAll)
/product/photo/:productId GET (read)
/product/create/:userId POST (create)
/product/update/:productId/:userId PUT (update)
/product/delete/:productId/:userId DELETE (delete)
orders
Models
Users
name:string
lastname:string
email:string
password:string
address:string
role:number
Product
name: string
category: fk(categoryId)
price: number
photo: buffer
description: string
stock:number
sold:number
Category
name: string
Orders
products: Array(product)
user: fk(userId)
transactionId: string
amount: number
status: bool