prisma: { client: { addData: <const PrismaClient extends BasePrismaClient>( prismaClient: Readonly<PrismaClient>, data: IsAny<PrismaClient> extends true ? any : PrismaAddModelData<PrismaClient>, ) => Promise<void>; dumpData: <const PrismaClient extends BasePrismaClient>( prismaClient: PrismaClient, options?: Readonly<PartialWithUndefined<PrismaDataDumpOptions>>, ) => Promise<PrismaAllBasicModels<PrismaClient>>; generate: ( schemaFilePath: string, env?: Record<string, string>, ) => Promise<void>; isCurrent: ( __namedParameters: { jsClientOutputDir: string; schemaFilePath: string; }, ) => Promise<boolean>; listModelNames: <const PrismaClient extends BasePrismaClient>( prismaClient: PrismaClient, ) => PrismaModelName<PrismaClient>[]; }; database: { diff: ( schemaFilePath: string, env?: Record<string, string>, ) => Promise<string>; hasDiff: ( schemaFilePath: string, env?: Record<string, string>, ) => Promise<boolean>; resetDev: ( schemaFilePath: string, env?: Record<string, string>, ) => Promise<void>; }; migration: { applyDev: ( schemaFilePath: string, env?: Record<string, string>, ) => Promise<void>; applyProd: ( schemaFilePath: string, env?: Record<string, string>, ) => Promise<void>; create: ( __namedParameters: { createOnly?: boolean; migrationName: string }, schemaFilePath: string, env?: Record<string, string>, ) => Promise<void>; status: ( schemaFilePath: string, env?: Record<string, string>, ) => Promise<PrismaMigrationStatus>; };} = ...
Centralized Prisma API from
@augment-vir/node
.Prisma flows
Deploy to production
Update dev environment
Apply migrations: prisma.migration.applyDev
Generate client:
prisma.client.isCurrent
false
, run prisma.client.generate