/** * Database Schema Analysis * Comprehensive ORM support: * - JavaScript/TypeScript: Prisma, Drizzle, TypeORM, Sequelize, MikroORM, Knex, Objection, Bookshelf * - Python: SQLAlchemy, Django ORM, SQLModel, Tortoise ORM, Peewee, SQLObject, Pony ORM, Databases * - Ruby: ActiveRecord, Sequel * - Java: Hibernate, JPA, MyBatis, jOOQ, Ebean * - PHP: Doctrine, Eloquent, Propel, RedBeanPHP * - C#: Entity Framework, Dapper, NHibernate * - Go: GORM, Ent, SQLBoiler, Beego ORM * - Rust: Diesel, Sea-ORM, SQLx * - Plus raw SQL migrations */ export interface DBColumn { name: string; type: string; nullable?: boolean; primary?: boolean; unique?: boolean; default?: string; /** FK target */ references?: string; } export interface DBTable { name: string; columns: DBColumn[]; indexes?: string[]; /** File where defined */ source: string; orm?: string; } export interface DBSchemaResult { tables: DBTable[]; relationships: { from: string; to: string; type: 'one-to-one' | 'one-to-many' | 'many-to-many'; through?: string; }[]; migrations: { file: string; timestamp?: string; description?: string; }[]; summary: { totalTables: number; totalColumns: number; totalRelationships: number; orms: string[]; }; scannedPatterns: string[]; } /** * Analyze database schema from SQL, ORM, and migration files. * @param cwd - The working directory to scan. * @param options - Configuration options. * @param options.directory - The directory to analyze. * @returns The database schema analysis result. */ export declare function analyzeDBSchema(cwd: string, options?: { directory?: string; }): Promise; //# sourceMappingURL=db-schema.d.ts.map