ShahbaazX786 / tracker.io

A Issue Tracker using Nextjs 13
https://tracker-io-wheat.vercel.app
2 stars 2 forks source link

Fix prisma schema #19

Closed ShahbaazX786 closed 8 months ago

ShahbaazX786 commented 8 months ago

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).

ShahbaazX786 commented 8 months ago

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.