zhangqian
2023-09-13 5bc036d71ff6094e550c99168eae2e2b4d495f51
models/db.go
@@ -73,7 +73,17 @@
func RegisterTables() error {
   db := mysqlx.GetDB()
   err := db.AutoMigrate(
      Company{},
      Warehouse{},
      OperationType{},
      Location{},
      OperationType{},
      Operation{},
      OperationDetails{},
      Scrap{},
      MoveHistory{},
      Product{},
      ProductCategory{},
   )
   return err
}