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:
Francisco Bretal 2025-03-17 09:51:59 +01:00 committed by GitHub
parent 810f673b86
commit 2b0abd625f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 23 deletions

View File

@ -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