What is the purpose of maintaining the audit details for each document in the database collections? #280
-
Hi, I was wondering what would be the purpose of maintaining the audit info for each document created? export interface IAudit {
readonly auditCreatedDateTime: string;
readonly auditCreatedBy: string;
auditModifiedBy?: string;
auditModifiedDateTime?: string;
auditDeletedBy?: string;
auditDeletedDateTime?: string;
} Can someone help me to understand it's use case? Note: I have seen we keep mostly only createdAt and updatedAt timestamps by default, not this much details |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The audit is required for any model within an application because it gives us information on who did what and when. Therefore the need for other properties such as auditModifiedDateTime, auditDeletedBy, and auditDeletedDateTime. Generally, it is a way to keep track of user activities within the application. @HimanshuAgrahari07 |
Beta Was this translation helpful? Give feedback.
The audit is required for any model within an application because it gives us information on who did what and when. Therefore the need for other properties such as auditModifiedDateTime, auditDeletedBy, and auditDeletedDateTime. Generally, it is a way to keep track of user activities within the application. @HimanshuAgrahari07