how to add common fields to models in prisma (schema)

Viewed 28

I have a problem with Prisma that is I have so far these models:

User, Branch, Project, Unit

and I need to add common fields like:

createdBy, CreatedAt, updatedAt, deleted

to all models and the models to come

I know I can add them manually (same fields each model) but it would be better if I added them one time

can anyone help me?

thanks a lot

0 Answers
Related