new
This commit is contained in:
@@ -195,7 +195,7 @@ go generate
|
|||||||
CHCP 65001
|
CHCP 65001
|
||||||
```
|
```
|
||||||
|
|
||||||
### table notes default
|
### column notes default
|
||||||
|
|
||||||
- Add a comment to the column starting with `[@gorm default:'test']`
|
- 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
|
- example `[@gorm default:'test';->;<-:create]this is my notes` Indicates that the default value is 'test',can read/creat/write
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ go generate
|
|||||||
CHCP 65001
|
CHCP 65001
|
||||||
```
|
```
|
||||||
|
|
||||||
### 表注释 tag
|
### 列注释 tag
|
||||||
|
|
||||||
- 给列添加注释以`[@gorm default:'test']`开头即可
|
- 给列添加注释以`[@gorm default:'test']`开头即可
|
||||||
- 比如`[@gorm default:'test';->;<-:create]这是注释内容` 表示默认值为'test',允许读,更新创建
|
- 比如`[@gorm default:'test';->;<-:create]这是注释内容` 表示默认值为'test',允许读,更新创建
|
||||||
|
|||||||
Reference in New Issue
Block a user