jiangshuai
2023-09-22 34e1e9dbc7a750048c0825b8f91b07ed526ae577
models/db.go
@@ -72,7 +72,20 @@
func RegisterTables() error {
   db := mysqlx.GetDB()
   err := db.AutoMigrate()
   err := db.AutoMigrate(
      Company{},
      Warehouse{},
      OperationType{},
      Location{},
      OperationType{},
      Operation{},
      OperationDetails{},
      Scrap{},
      MoveHistory{},
      //Product{},
      ProductCategory{},
      Material{},
   )
   return err
}