mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
efd1587ee9
refs #9834 - @TODO: the test env eslint needs to use the plugin, not part of this PR
19 lines
439 B
JavaScript
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)
|
|
};
|