@surv-co/prisma-typeorm-db-utils
Version:
Transform Prisma schemas to TypeORM entities with NestJS integration and fast pg-mem testing
31 lines • 674 B
TypeScript
export interface ColumnConfig {
type: string;
nullable?: boolean;
defaultValue?: DefaultValue;
decorators?: string[];
}
export interface ForeignKeyConfig {
fields: string[];
references: {
table: string;
columns: string[];
};
}
export interface TableConfig {
columns: {
[key: string]: ColumnConfig;
};
primaryKey?: string[];
foreignKeys?: ForeignKeyConfig[];
check?: string;
unique?: string[][];
}
export interface DefaultValue {
value: string;
isStringLiteral?: boolean;
}
export interface RelationInfo {
fields: string[];
references: string[];
}
//# sourceMappingURL=types.d.ts.map