title: Save concatenated conditional expressions in a database
body: <p><img src="https://i.stack.imgur.com/AFUrE.png" alt="Conditions table structure"></p>
  
  <p>Hi im trying to do an event alarms system that It is thought to depend on a list of undeterminated concatened conditional rules. <br>Here comes my logical problem, when im trying to structure the database to save this conditional rules in a table, i cant figure out how exactly trace the hierarchy of the expressions, for example if i wanna save the conditión
  <br> <code>[(1 =&lt; 2 &amp;&amp; 2 == 2) || (0 == 0 || 1 == 1)] &amp;&amp; (1 == 1)</code> <br>or any undeterminated number of concatened conditional rules. Can anybody help o almost understand me ? </p>
  
  <p>P.D: Sorry my bad english (:</p>