/** * Shared DMMF helper functions * * Extracted from generate.ts and openapi-generator.ts to eliminate duplication. * Both files had identical relationship-extraction logic — now they import from here. * * TEACHING NOTE: These are pure functions over the DmmfModel type. * They have no side effects, making them easy to test and reuse. */ import type { DmmfModel } from '../types/dmmf.js'; /** * Extract relationship field names from a Prisma model. * Returns names of fields whose `kind === 'object'` (i.e., Prisma relations). */ export declare function getModelRelationships(model: DmmfModel): string[]; /** * Get has-many (array) relationships from a model. * Returns `{ name, type }` for each `isList` relation field. */ export declare function getHasManyRelationships(model: DmmfModel): Array<{ name: string; type: string; }>; //# sourceMappingURL=dmmf-helpers.d.ts.map