add cron service to obtain oauth token and store it to the DB

This commit is contained in:
Bilal Catic
2019-08-30 23:19:04 +02:00
parent 4bf6d5f55d
commit 333733099b
8 changed files with 175 additions and 3 deletions

12
models/accessToken.js Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
module.exports = (sequelize, DataTypes) => {
const processing = sequelize.define('accessToken', {
token: DataTypes.TEXT,
validUntil: DataTypes.DATE,
}, {});
processing.associate = function(models) {
// associations can be defined here
};
return processing;
};