15 lines
257 B
Go
15 lines
257 B
Go
|
package feta
|
||
|
|
||
|
import "github.com/jinzhu/gorm"
|
||
|
import _ "github.com/jinzhu/gorm/dialects/sqlite"
|
||
|
|
||
|
type SavedInstance struct {
|
||
|
gorm.Model
|
||
|
hostname string
|
||
|
software string
|
||
|
}
|
||
|
|
||
|
func (f *FetaProcess) databaseMigrations() {
|
||
|
f.db.AutoMigrate(&SavedInstance{})
|
||
|
}
|