19 lines
446 B
JavaScript
19 lines
446 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)
|
|
};
|