File dump from old repo
This commit is contained in:
12
models/meta-school-model.js
Normal file
12
models/meta-school-model.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const bookshelf = require('../database/bookshelf').bookshelf;
|
||||
|
||||
require('./school-model');
|
||||
|
||||
let MetaSchool = bookshelf.Model.extend({
|
||||
tableName: 'meta_school',
|
||||
schools() {
|
||||
return this.hasMany('School');
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = bookshelf.model('MetaSchool', MetaSchool);
|
||||
Reference in New Issue
Block a user