zhansan
2023-09-18 edf6810f2ff9ac32230f58f62a753454b8e24269
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
}