Skip to content

Commit

Permalink
Adds mention to unique option in model properties (dresende#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Jul 29, 2013
1 parent c009904 commit d2d44d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -222,6 +222,7 @@ var Person = db.define('person', { // 'person' will be the table in the d

##### [all types]
* `required`: true marks the column as `NOT NULL`, false (default)
* `unique`: true marks the column with a `UNIQUE` index
* `defaultValue`: sets the default value for the field

##### string

0 comments on commit d2d44d8

Please sign in to comment.