gentool生成表模型
数据库表模型生成
go install gorm.io/gen/tools/gentool@latest
gentool -dsn "username:password@tcp(host:port)/dbname?charset=utf8mb4&parseTime=True&loc=Local" -tables "admin" -onlyModel -modelPkgName=".\models"
数据库表模型生成
go install gorm.io/gen/tools/gentool@latest
gentool -dsn "username:password@tcp(host:port)/dbname?charset=utf8mb4&parseTime=True&loc=Local" -tables "admin" -onlyModel -modelPkgName=".\models"