How i validate the table, if privacy=public then all user has unique title but privacy=private then every single user has a unique title.
---------------------------
user_id | title | privacy
---------------------------
2 | hello | public
---------------------------
2 | hello | private
---------------------------
2 | hello | private **Error**
---------------------------
2 | hello | public **Error**
---------------------------
3 | hello | public **Error**
---------------------------
3 | hello | private
---------------------------