Ghost/core/server/models/refreshtoken.js
Sumedh Nimkarde efd1587ee9 Switched to eslint-plugin-ghost (#9835)
refs #9834

- @TODO: the test env eslint needs to use the plugin, not part of this PR
2018-09-17 20:49:30 +02:00

19 lines
439 B
JavaScript

var ghostBookshelf = require('./base'),
Basetoken = require('./base/token'),
Refreshtoken,
Refreshtokens;
Refreshtoken = Basetoken.extend({
tableName: 'refreshtokens'
});
Refreshtokens = ghostBookshelf.Collection.extend({
model: Refreshtoken
});
module.exports = {
Refreshtoken: ghostBookshelf.model('Refreshtoken', Refreshtoken),
Refreshtokens: ghostBookshelf.collection('Refreshtokens', Refreshtokens)
};