Add models to module.exports if not replacing anything.
Add models to module.exports if not replacing anything.

If the model you're defining will not conflict with
any property of module.exports, you can get the model
later directly from the orm object.

    var orm = require("orm");
    orm.define("user", { ... });
    orm.user.find(...);

This last line can also be done like this:

    orm.model("user").find(...);

dresende/node-orm-old