migrate 优化migrate

This commit is contained in:
linwenxiang
2021-04-23 14:25:31 +08:00
parent e40047a88e
commit 1a111f0666
49 changed files with 677 additions and 202 deletions
@@ -0,0 +1,16 @@
package models
type SysFileDir struct {
Model
Label string `json:"label" gorm:"type:varchar(255);comment:目录名称"` // 目录名称
PId int `json:"pId" gorm:"type:int(11);comment:上级目录"` // 上级目录
Sort string `json:"sort" gorm:"type:bigint(20);comment:排序"` // 排序
Path string `json:"path" gorm:"type:varchar(255);comment:路径"` // 路径
Children []SysFileDir `json:"children,omitempty" gorm:"-"` // 下级信息
ControlBy
ModelTime
}
func (SysFileDir) TableName() string { /**/
return "sys_file_dir"
}