mrnodebot
Version:
Your Friendly NodeJS IRC Bot
15 lines (12 loc) • 421 B
JavaScript
const Models = require('funsociety-bookshelf-model-loader');
const RssChannelSubscription = Models.Base.extend({
tableName: 'rssChannelSubscriptions',
hasTimestamps: ['timestamp'],
soft: false,
feed() {
return this.belongsTo(Models.RssFeed, 'feed_id', 'id');
},
});
module.exports = {
RssChannelSubscription: Models.Bookshelf.model('rssChannelSubscriptions', RssChannelSubscription),
};