Init: Create & Init Project...

This commit is contained in:
2018-08-30 01:58:41 +08:00
commit 3ad58780e9
22 changed files with 614 additions and 0 deletions

12
model/gitlog.go Normal file
View File

@ -0,0 +1,12 @@
package model
import (
"github.com/jinzhu/gorm"
)
// GitLog GIT日志
type GitLog struct {
gorm.Model
ProjectID uint
Hash string
}

10
model/model.go Normal file
View File

@ -0,0 +1,10 @@
package model
import (
"yumc.pw/cloud/nvwa/database"
)
//Init 初始化模型
func Init() {
database.Db.AutoMigrate(&GitLog{})
}