chore: add device hierarchy
This commit is contained in:
@@ -26,8 +26,10 @@ func KickoffDatabase(workDir string) (*gorm.DB, error) {
|
||||
// try to use GORM automigrate if the schema changes
|
||||
if err := db.AutoMigrate(
|
||||
&Command{},
|
||||
&Device{},
|
||||
&File{},
|
||||
&Tenant{},
|
||||
&Group{},
|
||||
&Device{},
|
||||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user