import type { DMMF } from '@prisma/generator-helper'; /** * Index definition from the DMMF Datamodel.indexes array. * We accept a loose type since the DMMF re-exports differ across versions. */ interface DMMFIndex { model: string; type: string; isDefinedOnField: boolean; name?: string; dbName?: string; fields: Array<{ name: string; sortOrder?: string; }>; } /** * Generate a complete Go Ent schema file for a single Prisma model. * * The output follows the standard Ent schema layout: * - Package declaration * - Imports * - Struct embedding ent.Schema * - Fields() method * - Edges() method * - Indexes() method (if applicable) * - Annotations() method (if @@map is used) */ export declare function generateSchema(model: DMMF.Model, allModels: readonly DMMF.Model[], enumDefs: Map, indexes?: readonly DMMFIndex[]): string; export {}; //# sourceMappingURL=schema.d.ts.map