Hello!
Right now I'm looking at Prisma.
I am currently working with TypeORM.
One thing that I can't do with TypeORM, or don't know how:
Each table has at least four identical columns.
"changed_at", "changed_by", "deleted_at" and "deleted_by"
The first: how can I inherit these fields in Prisma?
The second: how can I write a hook in Prisma that gets the user and sets these fields accordingly?
The third: how can I tell Prisma that the database entries are never really deleted, but only "deleted_by" and "deleted_at" should be set?
"deleted_by" and "changed_by" is always in a relationship to a user. I would like to define that only once.