Skip to content

Commit 095f4bc

Browse files
authored
orm: add missing 'nonull' attribute description (#15348)
1 parent ab244d2 commit 095f4bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vlib/orm/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- `[primary]` sets the field as the primary key
1212
- `[unique]` sets the field as unique
1313
- `[unique: 'foo']` adds the field to a unique group
14+
- `[nonull]` set the field as not null
1415
- `[skip]` field will be skipped
1516
- `[sql: type]` where `type` is a V type such as `int` or `f64`, or special type `serial`
1617
- `[sql: 'name']` sets a custom column name for the field
@@ -140,4 +141,4 @@ fn main() {
140141
}
141142
142143
143-
```
144+
```

0 commit comments

Comments
 (0)