从 prisma 中的 table 获取模式

Get the schema from table in prisma

我突然被删除了迁移文件夹和架构文件:|

有没有办法从 prisma 中的表中获取架构?

是的,您可以使用 prisma db pull 从实际数据库生成模式。之后不要忘记 运行 prisma generate 来生成客户端。

More info in the docs as always