jiangshuai
2023-11-08 2bfc37cbc679ceb5cef3b714e93ce4ebf55f9512
models/db.go
@@ -81,9 +81,12 @@
      Operation{},
      OperationDetails{},
      Scrap{},
      MoveHistory{},
      Product{},
      ProductCategory{},
      Material{},
      LocationProduct{},
      LocationProductAmount{},
      ReorderRule{},
      Attachment{},
   )
   return err
}
@@ -95,6 +98,7 @@
func InsertDefaultData() {
   models := []interface{}{
      NewDepartmentSearch(),
      NewLocationSearch(),
   }
   for _, model := range models {
      if id, ok := model.(InitDefaultData); ok {