diff --git a/src/NamingStrategy.ts b/src/NamingStrategy.ts index 01d6b2f..1cad9cb 100644 --- a/src/NamingStrategy.ts +++ b/src/NamingStrategy.ts @@ -20,11 +20,8 @@ export class NamingStrategy extends AbstractNamingStrategy { columnOldName[0].toLowerCase() + columnOldName.substring(1, columnOldName.length); if ( - columnName - .toLowerCase() - .endsWith( - "id" - ) /*&& !ownerEntity.Columns.some(x=>x.tsName==columnName && x.isPrimary)*/ + columnName.toLowerCase().endsWith("id") && + !columnName.toLowerCase().endsWith("guid") ) { columnName = columnName.substring( 0,