Avoiding List on an E-commerce App

hello good day yall , please im currently building an e-commerce app and i want to avoid using ‘list of products’ or 'list of items ’ on my ‘Order’ or ‘Cart’ Data type , please anyone here has an idea how i can overcome that , please i really need your help .

Thank You

Hello @anjoorinpaul

Basic dB model:

Product

  • Title (text)
  • Price (number)

Cart

  • Title (text)
  • Date (date)

CartLineItem

  • Title (text)
  • Product (product)
  • Cart (cart)

Order

  • Title (text)
  • Cart (cart)

No lists. Hope the above helps! :smiley:

so in a case when user wants to buy multiple items and these items have different prices , how would you go about having multiple items under one data type to show records

This topic was automatically closed after 70 days. New replies are no longer allowed.