feat systables 数据迁移模块更新

This commit is contained in:
wenjianzhang
2021-05-11 18:53:40 +08:00
parent 98e0ee92a7
commit ee15329bd2
+14 -13
View File
@@ -1,16 +1,17 @@
package models package models
type SysTables struct { type SysTables struct {
TableId int `gorm:"primaryKey;autoIncrement" json:"tableId"` //表编码 TableId int `gorm:"primaryKey;autoIncrement" json:"tableId"` //表编码
TBName string `gorm:"column:table_name;size:255;" json:"tableName"` //表名称 TBName string `gorm:"column:table_name;size:255;" json:"tableName"` //表名称
TableComment string `gorm:"size:255;" json:"tableComment"` //表备注 TableComment string `gorm:"size:255;" json:"tableComment"` //表备注
ClassName string `gorm:"size:255;" json:"className"` //类名 ClassName string `gorm:"size:255;" json:"className"` //类名
TplCategory string `gorm:"size:255;" json:"tplCategory"` // TplCategory string `gorm:"size:255;" json:"tplCategory"` //
PackageName string `gorm:"size:255;" json:"packageName"` //包名 PackageName string `gorm:"size:255;" json:"packageName"` //包名
ModuleName string `gorm:"size:255;" json:"moduleName"` //模块 ModuleName string `gorm:"size:255;" json:"moduleName"` //go文件
BusinessName string `gorm:"size:255;" json:"businessName"` // ModuleFrontName string `gorm:"size:255;comment:前端文件名;" json:"moduleFrontName"` //前端文件名
FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称 BusinessName string `gorm:"size:255;" json:"businessName"` //
FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者 FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称
FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者
PkColumn string `gorm:"size:255;" json:"pkColumn"` PkColumn string `gorm:"size:255;" json:"pkColumn"`
PkGoField string `gorm:"size:255;" json:"pkGoField"` PkGoField string `gorm:"size:255;" json:"pkGoField"`
PkJsonField string `gorm:"size:255;" json:"pkJsonField"` PkJsonField string `gorm:"size:255;" json:"pkJsonField"`
@@ -18,8 +19,8 @@ type SysTables struct {
TreeCode string `gorm:"size:255;" json:"treeCode"` TreeCode string `gorm:"size:255;" json:"treeCode"`
TreeParentCode string `gorm:"size:255;" json:"treeParentCode"` TreeParentCode string `gorm:"size:255;" json:"treeParentCode"`
TreeName string `gorm:"size:255;" json:"treeName"` TreeName string `gorm:"size:255;" json:"treeName"`
Tree bool `gorm:"size:1;" json:"tree"` Tree bool `gorm:"size:1;default:0;" json:"tree"`
Crud bool `gorm:"size:1;" json:"crud"` Crud bool `gorm:"size:1;default:1;" json:"crud"`
Remark string `gorm:"size:255;" json:"remark"` Remark string `gorm:"size:255;" json:"remark"`
IsDataScope int `gorm:"size:1;" json:"isDataScope"` IsDataScope int `gorm:"size:1;" json:"isDataScope"`
IsActions int `gorm:"size:1;" json:"isActions"` IsActions int `gorm:"size:1;" json:"isActions"`
@@ -33,4 +34,4 @@ type SysTables struct {
func (SysTables) TableName() string { func (SysTables) TableName() string {
return "sys_tables" return "sys_tables"
} }