There are two table User & Todo. One User has many Todo & one Todo belongs to One User. user_id & todo_id is unique.
Todo table (todo_id, user_id, todo)
- 1, 1, 'todo1'
- 2, 1, 'todo2'
User table (user_id, name, email)
- 1, name1, email1
- 1, name2, email2
I need some kind of database architecture to store all changes in same table (or) may be better way without compromising constaint like unique.