models/db.go
@@ -75,8 +75,17 @@ err := db.AutoMigrate( Company{}, Warehouse{}, JobType{}, OperationType{}, Location{}, OperationType{}, Operation{}, OperationDetails{}, Scrap{}, ProductCategory{}, Material{}, LocationProduct{}, LocationProductAmount{}, ReorderRule{}, ) return err } @@ -88,6 +97,7 @@ func InsertDefaultData() { models := []interface{}{ NewDepartmentSearch(), NewLocationSearch(), } for _, model := range models { if id, ok := model.(InitDefaultData); ok {