diff --git a/src/torm/SnakeNamingStrategy.ts b/src/torm/SnakeNamingStrategy.ts index d64a0e57..47d0ed60 100644 --- a/src/torm/SnakeNamingStrategy.ts +++ b/src/torm/SnakeNamingStrategy.ts @@ -7,7 +7,7 @@ export class SnakeNamingStrategy extends DefaultNamingStrategy implements Naming } tableName(className: string, customName: string): string { - return customName ? customName : snakeCase(className); + return customName ? customName : `${snakeCase(className)}s`; } columnName(propertyName: string, customName: string, embeddedPrefixes: string[]): string {