prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
17 lines (16 loc) • 840 B
TypeScript
import { DMMF } from '@prisma/generator-helper';
export declare function checkModelHasModelRelation(model: DMMF.Model): boolean;
export declare function checkModelHasManyModelRelation(model: DMMF.Model): boolean;
export declare function checkIsModelRelationField(modelField: DMMF.Field): boolean;
export declare function checkIsManyModelRelationField(modelField: DMMF.Field): import("@prisma/dmmf/dist/util").ReadonlyDeep<boolean>;
export declare function findModelByName(models: DMMF.Model[], modelName: string): import("@prisma/dmmf/dist/util").ReadonlyDeep<{
name: string;
dbName: string | null;
schema: string | null;
fields: DMMF.Field[];
uniqueFields: string[][];
uniqueIndexes: DMMF.uniqueIndex[];
documentation?: string;
primaryKey: DMMF.PrimaryKey | null;
isGenerated?: boolean;
}> | undefined;