Похожие чаты

What will be data structure of this? if I select a

product category its products will appear

then if I select a product its customer category will appear

after that if I select customer type I want to show that customer who purchases selected products and its customer type that is selected?

3 ответов

6 просмотров
Muhammad-Arsalan Автор вопроса

const productCategories = [ { id:1, name:'Dairy' }, { id:2, name:'Juices' }, { id:3, name:'Chocolates' }, ] const products = { Dairy:[ {id:1,name:'Milk'}, {id:2,name:'Butter'}, ], Juices:[ {id:3,name:'Mango'}, {id:4,name:'Apple'}, ] } I Know how this will be but i am confused about customer category and name

products should have a category and customer_category fk customers should have a customer_category fk

Muhammad-Arsalan Автор вопроса
david
products should have a category and customer_categ...

yes i know this but what i want is that customers who also bought that specific product

Похожие вопросы

Обсуждают сегодня

Карта сайта