I considered this for an audit log as well, but ran into a roadblock in terms of associating the operation with a logged in user who triggered the change..
how did solve that particular issue? or was it not a requirement in your case?
how did solve that particular issue? or was it not a requirement in your case?
I got it working in a PoC, and with the right configuration of roles, this pattern would give you user identity and audit right down to the database itself.
Sadly I haven’t pulled it off in production environment yet, but if I ever get the chance to work at this level in an enterprise app again, I’ll definitely do it.
I don’t typically favor DB level solutions because bleeding app logic beyond basic schema and integrity means you lose some portability and/or your architecture messes separation of concerns pretty quick. Maybe that means you don’t get the full benefit of the DB but it’s a trade I usually make.