In prisma schema there are relations(foreign key constraints) but in datasource object relationMode is set to prisma (this option means to turn off foreign key constraints as planetscale doesn't support this).
So it just makes lesser sense to use relations and turn off foreign key constraints in relationMode.
Pls, add more to this. Or change the relation mode.
Well the main reason to add relationMode:prisma was to turn off foreign key constraints. And I did this because platscale didn't support foreign key constraints.
And now as I have migrated the db to supabase from planetscale. relationMode:prisma config is no longer needed in prisma.schema file.
In prisma schema there are relations(foreign key constraints) but in datasource object relationMode is set to prisma (this option means to turn off foreign key constraints as planetscale doesn't support this).