Moved code to /src folder

This commit is contained in:
Alexis
2021-07-18 16:08:03 +02:00
parent fbc38207f7
commit d977ce6551
41 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
const bookshelf = require('../database/bookshelf').bookshelf;
require('./spell-model');
let Variable = bookshelf.Model.extend({
tableName: 'variable',
spells() {
return this.belongsToMany('Spell', 'spell_variable');
}
});
module.exports = bookshelf.model('Variable', Variable);