I have two tables, login_inf
(information about login) and history
(history of changes in database, for example which user edited specified row) - picture below:
I want to know which user did a specified action, which user added a row (created_by
), which user edited a row (modified_by
) and which user deleted a row (removed_by
). Is my schema correct?
Relations:
history.created_by <-> login_inf.login
history.modified_by <-> login_inf.login
history.removed_by <-> login_inf.login
So these three columns in table history are one column from login_inf
, I just changed the name.