You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
709 B
JavaScript
33 lines
709 B
JavaScript
2 years ago
|
'use strict';
|
||
|
module.exports = {
|
||
|
up: async (queryInterface, Sequelize) => {
|
||
|
await queryInterface.createTable('Blacklists', {
|
||
|
id: {
|
||
|
allowNull: false,
|
||
|
autoIncrement: true,
|
||
|
primaryKey: true,
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
type: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
uid: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
reason: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
createdAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
},
|
||
|
updatedAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
down: async (queryInterface, Sequelize) => {
|
||
|
await queryInterface.dropTable('Blacklists');
|
||
|
}
|
||
|
};
|