From 7154e498b04aee14307f0a5c62a4e9d7572cce85 Mon Sep 17 00:00:00 2001 From: umang01-hash Date: Wed, 21 Aug 2024 10:29:06 +0530 Subject: [PATCH] minor refactoring in docs --- docs/quick-start/add-rest-handlers/page.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/quick-start/add-rest-handlers/page.md b/docs/quick-start/add-rest-handlers/page.md index 2489a3331..38701851e 100644 --- a/docs/quick-start/add-rest-handlers/page.md +++ b/docs/quick-start/add-rest-handlers/page.md @@ -50,12 +50,12 @@ func (u *userEntity) TableName() string { ``` ## Adding Database Constraints -By default, the GoFr assumes to have manual insertion of id for a given struct, but to support sql constraints like `auto-increment`, +By default, GoFr assumes to have manual insertion of id for a given struct, but to support sql constraints like `auto-increment`, `not-null` user can use the `sql` tag while declaring the struct fields. ```go type user struct { - Id int `json:"id" sql:"auto_increment"` + ID int `json:"id" sql:"auto_increment"` Name string `json:"name" sql:"not_null"` Age int `json:"age"` IsEmployed bool `json:"isEmployed"`