Open ishaan-jaff opened 4 months ago
Is there a recommended way to implement audit logs with Prisma Py. I want to audit when certain actions are taken on a specific table
budgets
I'd like to do something like this
Ideally I don't need to search for all the instances in my code where the DB is being written to
prisma_client = PrismaClient( database_url=database_url ) prisma_client.extend(`tables_to_audit=['budgets', 'models'])
Problem
Is there a recommended way to implement audit logs with Prisma Py. I want to audit when certain actions are taken on a specific table
budgets
table. We need to store the value before, after, time, and updated_bySuggested solution
I'd like to do something like this
Ideally I don't need to search for all the instances in my code where the DB is being written to
Alternatives
Additional context