gancio-upstream/server/migrations/20191025145312-fed_users.js
2019-10-28 17:33:20 +01:00

26 lines
533 B
JavaScript

'use strict'
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('fed_users', {
ap_id: {
type: Sequelize.STRING,
primaryKey: true
},
object: {
type: Sequelize.JSON
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
})
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('fed_users')
}
}