- Added getspells from variables, ingredients, and schools

This commit is contained in:
Alexis
2020-06-09 19:32:01 +02:00
parent 6d67ebff95
commit 3568a51627
7 changed files with 122 additions and 2 deletions

View File

@@ -7,10 +7,10 @@ require('./meta-school-model')
let School = bookshelf.Model.extend({
tableName: 'school',
spells() {
return this.belongsToMany( 'Spell', 'spell_school')
return this.belongsToMany( 'Spell', 'spell_school' )
},
meta_schools() {
return this.belongsTo( 'MetaSchool', 'meta_school_id')
return this.belongsTo( 'MetaSchool', 'meta_school_id' )
}
})