UNPKG

@loftysoul/soul

Version:

The professional Content Management System, based ghost

21 lines (16 loc) 448 B
var ghostBookshelf = require('./base'), AppField, AppFields; AppField = ghostBookshelf.Model.extend({ tableName: 'app_fields', post: function post() { return this.morphOne('Post', 'relatable'); } }); AppFields = ghostBookshelf.Collection.extend({ model: AppField }); module.exports = { AppField: ghostBookshelf.model('AppField', AppField), AppFields: ghostBookshelf.collection('AppFields', AppFields) };