mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
32 lines
669 B
JavaScript
32 lines
669 B
JavaScript
'use strict'
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.createTable('instances', {
|
|
domain: {
|
|
allowNull: false,
|
|
primaryKey: true,
|
|
type: Sequelize.STRING
|
|
},
|
|
name: {
|
|
type: Sequelize.STRING
|
|
},
|
|
blocked: {
|
|
type: Sequelize.BOOLEAN
|
|
},
|
|
data: {
|
|
type: Sequelize.JSON
|
|
},
|
|
createdAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
},
|
|
updatedAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
}
|
|
})
|
|
},
|
|
down: (queryInterface, Sequelize) => {
|
|
return queryInterface.dropTable('instances')
|
|
}
|
|
}
|