Prisma Note

Rename a table
In
schema.prismafile, rename the modelrun
prisma migrate dev --create-onlyandy, this cli would not run this created migration file immediatelyname this created migration file
run
npx prisma migrate devto operate the created migration file- Note: this operation would drop the table which means all the data on this table would be removed
now the previous name of the model has been changed to the new one (expenseRecord to record), regenerate the seed data
npx prisma db seedcheck database
npx prisma studio