mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
2c3abeee03
closes #4069 - Rename everything from camelCase to lowercase + dashes - Remove usage of `server`, `app` and `instance`
21 lines
454 B
JavaScript
21 lines
454 B
JavaScript
var ghostBookshelf = require('./base'),
|
|
AppSetting,
|
|
AppSettings;
|
|
|
|
AppSetting = ghostBookshelf.Model.extend({
|
|
tableName: 'app_settings',
|
|
|
|
app: function () {
|
|
return this.belongsTo('App');
|
|
}
|
|
});
|
|
|
|
AppSettings = ghostBookshelf.Collection.extend({
|
|
model: AppSetting
|
|
});
|
|
|
|
module.exports = {
|
|
AppSetting: ghostBookshelf.model('AppSetting', AppSetting),
|
|
AppSettings: ghostBookshelf.collection('AppSettings', AppSettings)
|
|
};
|