Skip to content

Commit

Permalink
docs: added enumName property (#5731)
Browse files Browse the repository at this point in the history
Related to #5729
  • Loading branch information
golergka committed May 16, 2020
1 parent 6a6cc7b commit c5a22f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/decorator-reference.md
Expand Up @@ -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).
Expand Down

0 comments on commit c5a22f5

Please sign in to comment.