UNPKG

@grouparoo/core

Version:
52 lines (51 loc) 1.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.createTable("oAuthRequests", { id: { type: DataTypes.STRING(191), primaryKey: true, }, type: { type: DataTypes.STRING(191), allowNull: false, }, provider: { type: DataTypes.STRING(191), allowNull: false, }, identities: { type: DataTypes.TEXT, allowNull: true, }, token: { type: DataTypes.TEXT, allowNull: true, }, consumed: { type: DataTypes.BOOLEAN, allowNull: false, }, appId: { type: DataTypes.STRING(191), allowNull: true, }, appOption: { type: DataTypes.STRING(191), allowNull: true, }, createdAt: { type: DataTypes.DATE, allowNull: false, }, updatedAt: { type: DataTypes.DATE, allowNull: false, }, }); }, down: async (queryInterface) => { await queryInterface.dropTable("oAuthRequests"); }, };