From 095f4bcf86d74d9a518d4ae7df6a013226dd556d Mon Sep 17 00:00:00 2001 From: cstffx Date: Fri, 5 Aug 2022 03:27:19 -0400 Subject: [PATCH] orm: add missing 'nonull' attribute description (#15348) --- vlib/orm/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/orm/README.md b/vlib/orm/README.md index 32478ef52..29d86043b 100644 --- a/vlib/orm/README.md +++ b/vlib/orm/README.md @@ -11,6 +11,7 @@ - `[primary]` sets the field as the primary key - `[unique]` sets the field as unique - `[unique: 'foo']` adds the field to a unique group +- `[nonull]` set the field as not null - `[skip]` field will be skipped - `[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 @@ -140,4 +141,4 @@ fn main() { } -``` \ No newline at end of file +``` -- 2.30.2