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