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.
openNG/models/NodeType.coffee

5 lines
146 B
CoffeeScript

module.exports = (bookshelf) ->
bookshelf.model "NodeType",
tableName: "node_types"
idAttribute: "id"
nodes: this.hasMany "Node", "type_id"