Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const bookshelf = require("../bookshelf");
- const Warehouse = bookshelf.model("Warehouse", {
- tableName: "warehouses",
- inventories: function() {
- return this.hasMany("Inventory");
- }
- });
- module.exports = Warehouse;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement