Untitled
Anonymous
plain_text
07/27/2023 2:13 PM
664 B
24
Indexable
export class CustomNamingStrategy extends DefaultNamingStrategy {
tableName(className: string, customName: string): string {
return snakeCase(super.tableName(className, customName));
}
columnName(propertyName: string, customName: string, embeddedPrefixes: string[]): string {
return snakeCase(super.columnName(propertyName, customName, embeddedPrefixes));
}
relationName(propertyName: string): string {
return snakeCase(super.relationName(propertyName));
}
}
Editor is loading...