Added constrains for the user tables