Skip to content

Commit b73e7e0

Browse files
authored
Updated list of supported field constraints
1 parent 81855cf commit b73e7e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ In addition to these standard field types, you can specify a model as a `type`.
7575

7676
Constraint Key | Type | Comments
7777
----------------|---------|----------------------------------------------
78-
required | boolean | Can also use "nullable" keyword.
79-
length | int | Only applies to "text" field types. Reassigns the database type to varchar.
78+
required | boolean | If true, adds a "NOT NULL" constraint to the field. Can also use "nullable" keyword.
79+
length | int | Only applies to "text" field types. When specified, reassigns the database type to varchar.
8080
unique | boolean | Should not be applied to "text" fields without a length constraint.
81-
81+
onDelete | string | Only applies to fields with models. Options include "cascade" and "no action" (default).
8282

8383
## Misc
8484

0 commit comments

Comments
 (0)