Column name for materialized paths.
Column names for nested sets.
Gets the name of the check constraint.
"isEnum" parameter is used to indicate if this check constraint used to handle "simple-enum" type for databases that are not supporting "enum" type out of the box. If "true", constraint is ignored during CHECK constraints synchronization.
Optional
isEnum: booleanCreates a table name for a junction table of a closure table.
Name of the closure table which owns this junction table.
Create a column name from a property name.
The property name of the entity
Optional
customName: stringThe custom column name
The embedded prefixes
The table column name
Gets the table's default constraint name from the given table name and column name.
Gets the name of the exclusion constraint.
Create a foreign key name.
The table or table name
The column names
The foreign key name
Protected
getColumns in join tables can have duplicate names in case of self-referencing. This method provide a resolution for such column names.
Optional
columnName: stringGets the name of the column used for columns in the junction tables from the invers side of the relationship.
Optional
columnName: stringAdds globally set prefix to the table name. This method is executed no matter if prefix was set or not. Table name is either user's given table name, either name generated from entity target. Note that table name comes here already normalized by #tableName method.
Gets the relation constraint (UNIQUE or UNIQUE INDEX) name from the given table name, column names and WHERE condition, if UNIQUE INDEX used.
Optional
where: stringCreate a table name from a class name.
The class name of the entity
Optional
customName: stringThe custom table name
The table name
Snake case naming strategy for typeorm. Determines table and column names from class and property names.