I am trying to design a table for maintaining USER information. Here is the table design as per the below image
Since the table has created_by and last_updated_by columns and they are the foreign keys to the user_id column of the same table, I am having multiple issues especially with Hibernate. When a user is signing up to the application, created by will be same as user id. Similarly, when the user is modifying his profile, the last updated by will be the same as user id.
How best can i tweak this design so that i still have the information about who created this record and updated it.