Home > other >  Get the schema from table in prisma
Get the schema from table in prisma

Time:02-07

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.

More info in the docs as always

  •  Tags:  
  • Related