mirror of https://github.com/vapor/docs.git
Update schema.md field constraints list (#1069)
A reference to .sql() was added to the Field Constraint list so that anyone who is looking for any other options knows there is the possibility to use SQLKit.
This commit is contained in:
parent
810f673b86
commit
2b0abd625f
|
|
@ -91,8 +91,9 @@ Supported field constraints are listed below.
|
||||||
|FieldConstraint|Description|
|
|FieldConstraint|Description|
|
||||||
|-|-|
|
|-|-|
|
||||||
|`.required`|Disallows `nil` values.|
|
|`.required`|Disallows `nil` values.|
|
||||||
|`.references`|Requires that this field's value match a value in the referenced schema. See [foreign key](#foreign-key)|
|
|`.references`|Requires that this field's value match a value in the referenced schema. See [foreign key](#foreign-key).|
|
||||||
|`.identifier`|Denotes the primary key. See [identifier](#identifier)|
|
|`.identifier`|Denotes the primary key. See [identifier](#identifier).|
|
||||||
|
|`.sql(SQLColumnConstraintAlgorithm)`|Defines any constraint that is not supported (e.g. `default`). See [SQL](#sql) and [SQLColumnConstraintAlgorithm](https://api.vapor.codes/sqlkit/documentation/sqlkit/sqlcolumnconstraintalgorithm/).|
|
||||||
|
|
||||||
### Identifier
|
### Identifier
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue