Skip to content

Commit

Permalink
add documentation for O.Unique
Browse files Browse the repository at this point in the history
  • Loading branch information
d6y committed Sep 20, 2017
1 parent fbed990 commit b338917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/src/schemas.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ object. The following ones are defined for `JdbcProfile`:
- `Default[T](defaultValue: T)`: Specify a default value for inserting data into the table without this column. - `Default[T](defaultValue: T)`: Specify a default value for inserting data into the table without this column.
This information is only used for creating DDL statements so that the database can fill in the missing information. This information is only used for creating DDL statements so that the database can fill in the missing information.


- `Unique`: Add a uniqueness constraint to the DDL statement for the column.

- `SqlType(typeName: String)`: Use a non-standard database-specific type for the DDL statements (e.g. - `SqlType(typeName: String)`: Use a non-standard database-specific type for the DDL statements (e.g.
`SqlType("VARCHAR(20)")` for a `String` column). `SqlType("VARCHAR(20)")` for a `String` column).


Expand Down

0 comments on commit b338917

Please sign in to comment.