2014-02-25 00:28:18 +04:00
|
|
|
var ghostBookshelf = require('./base'),
|
|
|
|
AppSetting,
|
|
|
|
AppSettings;
|
|
|
|
|
|
|
|
AppSetting = ghostBookshelf.Model.extend({
|
|
|
|
tableName: 'app_settings',
|
|
|
|
|
|
|
|
app: function () {
|
2014-07-13 15:17:18 +04:00
|
|
|
return this.belongsTo('App');
|
2014-02-25 00:28:18 +04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
AppSettings = ghostBookshelf.Collection.extend({
|
|
|
|
model: AppSetting
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
2014-07-13 15:17:18 +04:00
|
|
|
AppSetting: ghostBookshelf.model('AppSetting', AppSetting),
|
|
|
|
AppSettings: ghostBookshelf.collection('AppSettings', AppSettings)
|
2014-09-10 08:06:24 +04:00
|
|
|
};
|