1、初始化项目
This commit is contained in:
12
cmd/migrate/migration/models/tb_demo.go
Normal file
12
cmd/migrate/migration/models/tb_demo.go
Normal file
@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user