migrate ✅ 优化migrate

This commit is contained in:
linwenxiang committed 2021-04-23 14:25:31 +08:00
1 parent e40047a88e
commit 1a111f0666
49 files changed
+677 -202

No files matched your search

@@ -0,0 +1,17 @@
package models
type SysConfig struct {
Model
ConfigName string `json:"configName" gorm:"type:varchar(128);comment:ConfigName"` //
ConfigKey string `json:"configKey" gorm:"type:varchar(128);comment:ConfigKey"` //
ConfigValue string `json:"configValue" gorm:"type:varchar(255);comment:ConfigValue"` //
ConfigType string `json:"configType" gorm:"type:varchar(64);comment:ConfigType"`
IsFrontend int `json:"isFrontend" gorm:"type:varchar(64);comment:是否前台"` //
Remark string `json:"remark" gorm:"type:varchar(128);comment:Remark"` //
ControlBy
ModelTime
}
func (SysConfig) TableName() string {
return "sys_config"
}