Hi , is there any way to customize generating PrismaClient process?
Now I am implementing the backend of Saas and the strategy of db is shared table(table have tenant_id column). To add the value of tenant at create and add the where tennatId = XXXX at findXXXXX and so on, I am using Prisma Middleware now.
I have one problem now and that is like this (below is example).
User_profile table have tenant_id column which is required. And in the type definition of prisma.userProfile.create , tenant is required too , but the best for us is tenant is not in this type definition (because the value is decided by Middleware). So I want to customize generating PrismaClient process. (It is the best solution for me that I can add @MiddlewareCreateValue to tenant attribute in my schema )