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