Database data change logging #12610
Unanswered
ggukggukee
asked this question in
Q&A
Replies: 2 comments
-
Hey @ggukggukee 👋 , This approach should definitely work! You might want to look into creating a middleware in your HTTP framework (or even a Prisma middleware) to avoid duplication. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would be interested to see the workings of that 'difference' function if possible? Also what is columnId recording exactly? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I found out that in Prisma there is no database change logging or I might say triggers. Therefore I created my own solution.
EditLog schema:
Route for edit user data
Is it a good approach for storing changes?
If this will be used in all routes for POST, PUT and DELETE methods how it will affect in app's performance?
Beta Was this translation helpful? Give feedback.
All reactions