feta/db/dbmodel.go

16 lines
315 B
Go

package db
import "github.com/sneak/feta/process"
import "github.com/jinzhu/gorm"
import _ "github.com/jinzhu/gorm/dialects/sqlite" // required for orm
type savedInstance struct {
gorm.Model
hostname string
software string
}
func (f *process.Feta) databaseMigrations() {
f.db.AutoMigrate(&savedInstance{})
}