This commit is contained in:
xxj
2021-02-02 15:25:25 +08:00
parent 689c8a30d9
commit ea7c73db90
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -205,7 +205,7 @@ go generate
CHCP 65001
```
### 注释 tag
### 注释 tag
- 给列添加注释以`[@gorm default:'test']`开头即可
- 比如`[@gorm default:'test';->;<-:create]这是注释内容` 表示默认值为'test',允许读,更新创建