title: How to create advanced product filter for multiple categories?
body: <p>I want to create product filter for multiple categories:</p>
  <p>For ex.:
  mobile phones - parameters: color, RAM, Memory
  PC            - paramaters: Procesor, Graphic card, RAM, Memory
  ...</p>
  <p>And I do not know how to set up database tables for this purpose. My idea is to create two tables:</p>
  <pre><code>1. Items
  Id | Item_Name   | Cat_Id | Option_1   | Option_2 | ...
  1  | Samsung S20 | 1      | Blue       | 16GB     | ...
  2  | Acer        | 2      | Intel Core | Nvidia   | ...
  
  2. Categories:
  Id | Cat_Name | Option_1 | Option_2 | ...
  1  | mobiles  | color    | RAM      | ...
  2  | PC       | procesor | graphic  | ...
  </code></pre>
  <p>Then I will have filter</p>
  <p>Category:</p>
  <ul>
  <li><strong>mobiles</strong></li>
  <li>PC</li>
  </ul>
  <p>If I choose mobiles it will show filters:</p>
  <p>Color (option_1):</p>
  <ul>
  <li><strong>blue</strong></li>
  </ul>
  <p>RAM (option_2):</p>
  <ul>
  <li>16GB</li>
  </ul>
  <p>Is this good way how to do db structure for this purpose? Thank you</p>