mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
21 lines
457 B
JavaScript
21 lines
457 B
JavaScript
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)
|
|
};
|