refactored, linted, formatted
This commit is contained in:
15
db/dbmodel.go
Normal file
15
db/dbmodel.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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{})
|
||||
}
|
||||
Reference in New Issue
Block a user