2020-03-05 21:50:16 +01:00
|
|
|
'use strict';
|
|
|
|
module.exports = {
|
2020-04-30 22:20:07 +02:00
|
|
|
up: (queryInterface, Sequelize) => {
|
|
|
|
return queryInterface.createTable('quotationStats', {
|
|
|
|
id: {
|
|
|
|
allowNull: false,
|
|
|
|
autoIncrement: true,
|
|
|
|
primaryKey: true,
|
|
|
|
type: Sequelize.INTEGER
|
|
|
|
},
|
|
|
|
serverID: {
|
|
|
|
type: Sequelize.BIGINT
|
|
|
|
},
|
|
|
|
stat: {
|
|
|
|
type: Sequelize.STRING
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
allowNull: false,
|
|
|
|
type: Sequelize.DATE
|
|
|
|
},
|
|
|
|
updatedAt: {
|
|
|
|
allowNull: false,
|
|
|
|
type: Sequelize.DATE
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
|
|
return queryInterface.dropTable('quotationStats');
|
|
|
|
}
|
2020-03-05 21:50:16 +01:00
|
|
|
};
|