Johan
04/07/2021, 2:32 PMRyan
04/07/2021, 2:35 PMschema.prisma , then you can use dmmf :
Yes, you can get all the metadata for your entire schema in the following manner:
const prisma = new PrismaClient()
// @ts-ignore
console.log(prisma._dmmf)
This will give you all the details for the models and relations along with the data types.Johan
04/07/2021, 8:16 PMjanpio
npx prisma db pull (formerly known as npx prisma introspect). This will give you a new Prisma schema.janpio
CREATE statements in pure DDL SQL, optimally use a third party tool.