This repository has been archived on 2026-06-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
spellsaurus/repositories/meta-school-repository.js

27 lines
530 B
JavaScript

'use strict'
// Bookshelf
const bookshelf = require('../database/connection').bookshelf
const Schools = require('./school-repository')
class MetaSchoolRepository {
constructor() {
this.model = bookshelf.Model.extend({
tableName: 'meta_school',
schools() {
return this.hasMany( Schools._model )
}
})
}
set model(model) {
this._model = model
}
get model() {
return this._model
}
}
module.exports = MetaSchoolRepository