2014-07-14 16:29:45 +04:00
|
|
|
var ghostBookshelf = require('./base'),
|
2015-06-14 18:58:49 +03:00
|
|
|
Basetoken = require('./base/token'),
|
2014-06-30 16:58:10 +04:00
|
|
|
|
|
|
|
Accesstoken,
|
|
|
|
Accesstokens;
|
|
|
|
|
2014-07-14 16:29:45 +04:00
|
|
|
Accesstoken = Basetoken.extend({
|
|
|
|
tableName: 'accesstokens'
|
2014-06-30 16:58:10 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
Accesstokens = ghostBookshelf.Collection.extend({
|
|
|
|
model: Accesstoken
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
2014-07-13 15:17:18 +04:00
|
|
|
Accesstoken: ghostBookshelf.model('Accesstoken', Accesstoken),
|
|
|
|
Accesstokens: ghostBookshelf.collection('Accesstokens', Accesstokens)
|
2014-09-10 08:06:24 +04:00
|
|
|
};
|