0..* has Shopping Cart + cartid + productID + quantity + dateAdded + addCartItem() + updateQuality() + viewCartDetails()
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
0..* has Shopping Cart + cartid + productID + quantity + dateAdded + addCartItem() + updateQuality() + viewCartDetails()
Firstly they are required to provide all the MongoDB commands(e.g. db.collectionname.insert), rather than a JSON output of theirdatabase from MongoDB. Reduce their mark by one criteria ifthey don’t give all their MongoDB code. If the screenshots inthe report show all the code then that’s fine.
Secondly, and probably most importantly, it should be adocument store implementation. Many studentsdon’t understand this and simply replicate their relational design,i.e. one collection per table.
I am looking for them to have appropriately used nesteddocuments, arrays, and documents with different properties in thesame collection (to show they understand that it’s asemi-structured schema), and also removes the need to store nulldata.
0..* has Shopping Cart + cartid + productID + quantity + dateAdded + addCartItem() + updateQuality() + viewCartDetails() + checkOut() 1 Customer + customerName + address + email + credit Card Info + shippingInfo + accountBalance + register() + login() + updateProvile() 1 place 0..* Order + orderld + date Created + dateShipped + customerName + customerld + status + shippingld + placeOrder() -register. has User + userld +password + loginStatus + registerDate + verifyLogin() -has a- Shipping + shippingld + shipping Type + shipping Cost + shippingRegionld + updateShippingInfo() 1 Administrator + adminName + email + updateCatalog() Product + orderld + productid + productName + quantity + unitCost + sub Total + calcPrice()