mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
37 lines
751 B
JavaScript
37 lines
751 B
JavaScript
|
'use strict'
|
||
|
module.exports = {
|
||
|
up: (queryInterface, Sequelize) => {
|
||
|
return queryInterface.createTable('instances', {
|
||
|
id: {
|
||
|
allowNull: false,
|
||
|
autoIncrement: true,
|
||
|
primaryKey: true,
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
domain: {
|
||
|
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')
|
||
|
}
|
||
|
}
|