mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
orm: add missing 'nonull' attribute description (#15348)
This commit is contained in:
parent
ab244d2236
commit
095f4bcf86
@ -11,6 +11,7 @@
|
|||||||
- `[primary]` sets the field as the primary key
|
- `[primary]` sets the field as the primary key
|
||||||
- `[unique]` sets the field as unique
|
- `[unique]` sets the field as unique
|
||||||
- `[unique: 'foo']` adds the field to a unique group
|
- `[unique: 'foo']` adds the field to a unique group
|
||||||
|
- `[nonull]` set the field as not null
|
||||||
- `[skip]` field will be skipped
|
- `[skip]` field will be skipped
|
||||||
- `[sql: type]` where `type` is a V type such as `int` or `f64`, or special type `serial`
|
- `[sql: type]` where `type` is a V type such as `int` or `f64`, or special type `serial`
|
||||||
- `[sql: 'name']` sets a custom column name for the field
|
- `[sql: 'name']` sets a custom column name for the field
|
||||||
|
Loading…
Reference in New Issue
Block a user