refactor🎨: 添加默认demo代码生成表
This commit is contained in:
1 parent
b9b3cbee93
commit
b6be297a1e
2 files changed
+13
No files matched your search
@@ -0,0 +1,12 @@
|
|||||||
|
package models
|
||||||
|
|
||||||
|
type TbDemo struct {
|
||||||
|
Model
|
||||||
|
Name string `json:"name" gorm:"type:varchar(128);comment:名称"`
|
||||||
|
ModelTime
|
||||||
|
ControlBy
|
||||||
|
}
|
||||||
|
|
||||||
|
func (TbDemo) TableName() string {
|
||||||
|
return "tb_demo"
|
||||||
|
}
|
||||||
@@ -35,6 +35,7 @@ func _1599190683659Tables(db *gorm.DB, version string) error {
|
|||||||
new(models.SysJob),
|
new(models.SysJob),
|
||||||
new(models.SysConfig),
|
new(models.SysConfig),
|
||||||
new(models.SysApi),
|
new(models.SysApi),
|
||||||
|
new(models.TbDemo),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user