You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
module.exports = function(bookshelf) {
|
|
return bookshelf.model("NodeType", {
|
|
tableName: "node_types",
|
|
idAttribute: "id",
|
|
nodes: this.hasMany("Node", "type_id")
|
|
});
|
|
};
|