foreign key 外键导出
This commit is contained in:
21
README.md
21
README.md
@@ -9,18 +9,19 @@
|
|||||||
|
|
||||||
--------
|
--------
|
||||||
|
|
||||||
## 1. Configure default configuration items through the current directory config. toml file
|
## 1. Configure default configuration items through the current directory config.yml file
|
||||||
```
|
```
|
||||||
out_dir = "." # out dir
|
out_dir : "." # out dir
|
||||||
singular_table = false # Table name plural (big Camel-Case):gorm.SingularTable
|
singular_table : false # Table name plural (big Camel-Case):gorm.SingularTable
|
||||||
simple = false #simple output
|
simple : false #simple output
|
||||||
isJsonTag = true # Whether to mark JSON or not
|
is_json_tag : true # Whether to mark JSON or not
|
||||||
|
is_foreign_key : true # Whether to mark foreign key or not
|
||||||
[mysql_info]
|
[mysql_info]
|
||||||
host = "127.0.0.1"
|
host : "127.0.0.1"
|
||||||
port = 3306
|
port : 3306
|
||||||
username = "root"
|
username : "root"
|
||||||
password = "qwer"
|
password : "qwer"
|
||||||
database = "oauth_db"
|
database : "oauth_db"
|
||||||
|
|
||||||
```
|
```
|
||||||
## 2. get help
|
## 2. get help
|
||||||
|
|||||||
@@ -6,18 +6,19 @@
|
|||||||
[English](README.md)
|
[English](README.md)
|
||||||
--------
|
--------
|
||||||
|
|
||||||
## 1. 通过当前目录config.toml文件配置默认配置项
|
## 1. 通过当前目录 config.yml 文件配置默认配置项
|
||||||
```
|
```
|
||||||
out_dir = "." # 输出目录
|
out_dir : "." # 输出目录
|
||||||
singular_table = false # 表名复数,是否大驼峰构建 参考:gorm.SingularTable
|
singular_table : false # 表名复数,是否大驼峰构建 参考:gorm.SingularTable
|
||||||
simple = false #简单输出
|
simple : false #简单输出
|
||||||
isJsonTag = true #是否打json标记
|
isJsonTag : true #是否打json标记
|
||||||
[mysql_info]
|
mysql_info :
|
||||||
host = "127.0.0.1"
|
host : "127.0.0.1"
|
||||||
port = 3306
|
port : 3306
|
||||||
username = "root"
|
username : "root"
|
||||||
password = "qwer"
|
password : "qwer"
|
||||||
database = "oauth_db"
|
database : "oauth_db"
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
## 2. 可以使用命令行工具更新配置项
|
## 2. 可以使用命令行工具更新配置项
|
||||||
|
|||||||
Reference in New Issue
Block a user