What is the purpose of maintaining the audit details for each document in the database collections? #280
Answered
by
olasunkanmi-SE
agrahari-himanshu
asked this question in
Q&A
|
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 |
Answered by
olasunkanmi-SE
Apr 29, 2023
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 |
1 reply
Answer selected by
olasunkanmi-SE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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