I was deleted the migration folders and schema file suddenly :|
Is there any way to get schema from tables in prisma?
CodePudding user response:
Yes, you can use prisma db pull
to generate schema from your actual database. Din't forget to run prisma generate
after that to generate the client too.