title: SQL check constraint on multiple tables
body: <p>So If the "Type" is 0, i should be able to add my person in Table B, else not, but the "Type" column is not and shouldn't be in Table B.
  <a href="https://i.stack.imgur.com/pH12y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pH12y.png" alt="enter image description here"></a></p>