Go API 快速开发脚手架
config.toml.example=>config.toml- 表
User对应ent/schema/user.go- 执行
ent.sh生成ORM代码 (只要ent/schema目录下有变动都需要执行)- 执行
go run main.go migrate迁移表结构
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Go API 快速开发脚手架
config.toml.example=>config.toml- 表
User对应ent/schema/user.go- 执行
ent.sh生成ORM代码 (只要ent/schema目录下有变动都需要执行)- 执行
go run main.go migrate迁移表结构