import { Sequelize } from 'sequelize'; const clientConfig = { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true, }, clientId: { type: Sequelize.STRING, }, clientSecret: { type: Sequelize.STRING, }, currentToken: { type: Sequelize.STRING(2000), }, tokenExpiration: { type: Sequelize.DATE, }, }; export default (sequelize) => { const ClientConfig = sequelize.define( 'clientConfig', clientConfig, { timestamps: false, freezeTableName: true, } ); return ClientConfig; };