From ea7c73db90c2ee78aee5d07ebee00f40f82a6653 Mon Sep 17 00:00:00 2001 From: xxj <346944475@qq.com> Date: Tue, 2 Feb 2021 15:25:25 +0800 Subject: [PATCH] new --- README.md | 2 +- README_zh_cn.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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',允许读,更新创建