- Moved api files to a relevant subfolder

This commit is contained in:
Alexis
2020-08-09 15:27:22 +02:00
parent 71423a2172
commit ddcc6acc75
33 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
'use strict'
const bookshelf = require('../database/bookshelf').bookshelf
require('./spell-model')
let Ingredient = bookshelf.Model.extend({
tableName: 'ingredient',
spells() {
return this.belongsToMany( 'Spell', 'spell_ingredient')
}
})
module.exports = bookshelf.model('Ingredient', Ingredient)