gancio-upstream/server/migrations/20191226001504-oauth_client.js
2020-01-21 01:24:10 +01:00

23 lines
626 B
JavaScript

module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('oauth_clients', {
id: {
allowNull: false,
primaryKey: true,
type: Sequelize.STRING
},
name: Sequelize.STRING,
client_secret: Sequelize.STRING,
scopes: Sequelize.STRING,
redirectUris: Sequelize.STRING,
website: Sequelize.STRING,
createdAt: { type: Sequelize.DATE, allowNull: false },
updatedAt: { type: Sequelize.DATE, allowNull: false }
})
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('oauth_clients')
}
}