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