Haha-Yes/migrations/20200430005935-create-log-stats.js
loicbersier 320ac3a3f0 Some channel logging (W.I.P)
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
2020-04-30 22:34:54 +02:00

30 lines
No EOL
564 B
JavaScript

'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('LogStats', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
guild: {
type: Sequelize.BIGINT
},
channel: {
type: Sequelize.BIGINT
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('LogStats');
}
};