diff --git a/README.md b/README.md index 3260256..39dc282 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ go generate CHCP 65001 ``` -### table notes default +### column notes default - Add a comment to the column starting with `[@gorm default:'test']` - example `[@gorm default:'test';->;<-:create]this is my notes` Indicates that the default value is 'test',can read/creat/write diff --git a/README_zh_cn.md b/README_zh_cn.md index afff595..f04147b 100644 --- a/README_zh_cn.md +++ b/README_zh_cn.md @@ -205,7 +205,7 @@ go generate CHCP 65001 ``` -### 表注释 tag +### 列注释 tag - 给列添加注释以`[@gorm default:'test']`开头即可 - 比如`[@gorm default:'test';->;<-:create]这是注释内容` 表示默认值为'test',允许读,更新创建