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 }