export interface ColumnInfo { name: string; databaseName?: string; type: string; nullable: boolean; primary: boolean; generated: boolean; default?: string; length?: string; } export interface RelationInfo { property: string; kind: string; target: string; inverseProperty?: string; } export interface IndexInfo { name?: string; columns: string[]; unique: boolean; } export interface EntitySchema { name: string; tableName: string; columns: ColumnInfo[]; relations: RelationInfo[]; indexes: IndexInfo[]; } export interface SchemaCollectorData { entities: EntitySchema[]; entityCount: number; mermaid?: string; }