mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
23 lines
626 B
JavaScript
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')
|
|
}
|
|
}
|