From b955cd35933899dcc34e515e4118fbd3de449369 Mon Sep 17 00:00:00 2001 From: golergka Date: Sat, 16 May 2020 19:18:20 +0300 Subject: [PATCH] docs: added enumName property (#5731) Related to #5729 --- docs/decorator-reference.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/decorator-reference.md b/docs/decorator-reference.md index c79cd069a85..438dbd20eb3 100644 --- a/docs/decorator-reference.md +++ b/docs/decorator-reference.md @@ -193,6 +193,7 @@ If `true`, MySQL automatically adds the `UNSIGNED` attribute to this column. * `collation: string` - Defines a column collation. * `enum: string[]|AnyEnum` - Used in `enum` column type to specify list of allowed enum values. You can specify array of values or specify a enum class. +* `enumName: string` - A name for generated enum type. If not specified, TypeORM will generate a enum type from entity and column names - so it's neccessary if you intend to use the same enum type in different tables. * `asExpression: string` - Generated column expression. Used only in [MySQL](https://dev.mysql.com/doc/refman/5.7/en/create-table-generated-columns.html). * `generatedType: "VIRTUAL"|"STORED"` - Generated column type. Used only in [MySQL](https://dev.mysql.com/doc/refman/5.7/en/create-table-generated-columns.html). * `hstoreType: "object"|"string"` - Return type of `HSTORE` column. Returns value as string or as object. Used only in [Postgres](https://www.postgresql.org/docs/9.6/static/hstore.html).