UNPKG

@loftysoul/soul

Version:

The professional Content Management System, based ghost

21 lines (16 loc) 457 B
var ghostBookshelf = require('./base'), AppSetting, AppSettings; AppSetting = ghostBookshelf.Model.extend({ tableName: 'app_settings', app: function app() { return this.belongsTo('App'); } }); AppSettings = ghostBookshelf.Collection.extend({ model: AppSetting }); module.exports = { AppSetting: ghostBookshelf.model('AppSetting', AppSetting), AppSettings: ghostBookshelf.collection('AppSettings', AppSettings) };