registTable.go 174 字节
Newer Older
1 2 3 4 5 6 7
package registTable

import (
	"github.com/jinzhu/gorm"
	"main/model/dbModel"
)

Mr.奇淼('s avatar
Mr.奇淼( 已提交
8
//注册数据库表专用
9 10 11
func RegistTable(db *gorm.DB) {
	db.AutoMigrate(dbModel.User{})
}