Skip to content

Commit

Permalink
docs: add default value note for unique @column option (#5599)
Browse files Browse the repository at this point in the history
adds note about the "default" value of the unique option of the `@Column` decorator
  • Loading branch information
jlvallelonga committed Mar 2, 2020
1 parent 334e17e commit 86328d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/decorator-reference.md
Expand Up @@ -178,7 +178,7 @@ Default value is `true`.
* `select: boolean` - Defines whether or not to hide this column by default when making queries. When set to `false`, the column data will not show with a standard query. By default column is `select: true`
* `default: string` - Adds database-level column's `DEFAULT` value.
* `primary: boolean` - Marks column as primary. Same as using `@PrimaryColumn`.
* `unique: boolean` - Marks column as unique column (creates unique constraint).
* `unique: boolean` - Marks column as unique column (creates unique constraint). Default value is false.
* `comment: string` - Database's column comment. Not supported by all database types.
* `precision: number` - The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
number of digits that are stored for the values. Used in some column types.
Expand Down

0 comments on commit 86328d0

Please sign in to comment.