Ghost/core/server/models/custom-theme-setting.js
Kevin Ansfield 57effd9585
Added custom_theme_settings table/model (#13327)
refs https://github.com/TryGhost/Team/issues/1070

- stores values of custom theme settings
  - will be merged with full settings data parsed from themes for API output
  - will be cached and made available for lookup in themes to avoid db roundtrips
- stores type of custom theme settings so we can coerce values and know if the type has changed when syncing
- records will be synced with themes upon activation
2021-09-23 11:51:18 +01:00

10 lines
253 B
JavaScript

const ghostBookshelf = require('./base');
const CustomThemeSetting = ghostBookshelf.Model.extend({
tableName: 'custom_theme_settings'
});
module.exports = {
CustomThemeSetting: ghostBookshelf.model('CustomThemeSetting', CustomThemeSetting)
};