Retrieve an Objection model by its table name.
Name of the table to search for.
Object containing available models.
The matching model or undefined.
const User = getModelByTableName("users", allModels); Copy
const User = getModelByTableName("users", allModels);
Retrieve an Objection model by its table name.