My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What is the proper way to save audit information in a database

Karan Sharma's photo
Karan Sharma
·Oct 5, 2017

I'm working on an application where I need to save basically :

  1. CreatedBy (FK to the person table)
  2. CreatedDateTime
  3. UpdatedBy (FK to the person table)
  4. UpdatedDateTime

Right now I have these fields in all the tables in my database. But I feel like there should be a better way to do this.