'Add some fields automatically to all the migrations in prisma

I have around 20 data models and all these models needs createdAt and updatedAt fields. Is there anyway to add these fields automatically for existing and future models when I run prisma migrate command.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source