text: module.exports = {
    up: async (queryInterface, Sequelize) => {
      await queryInterface.createTable('Activities', {
        id: {
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
          type: Sequelize.INTEGER
        },
        message: {
          type: Sequelize.STRING,
          allowNull: true,
        },
        kind: {
          type: Sequelize.STRING,
          allowNull: false,
        },
        isGenerated: {
          type: Sequelize.BOOLEAN,
          allowNull: false,
          defaultValue: true
        },
        createdAt: {
          allowNull: false,
          type: Sequelize.DATE
        },
        updatedAt: {
          allowNull: false,
          type: Sequelize.DATE
        },
        boardId: {
          type: Sequelize.INTEGER,
          allowNull: false,
          onDelete: 'CASCADE',
          references: {
            model: 'Boards',
            key: 'id',
            as: 'boardId',
          },
        },
        listId: {
          type: Sequelize.INTEGER,
          onDelete: 'CASCADE',
          references: {
            model: 'Lists',
            key: 'id',
            as: 'listId',
          },
        },
        cardId: {
          type: Sequelize.INTEGER,
          onDelete: 'CASCADE',
          references: {
            model: 'Cards',
            key: 'id',
            as: 'cardId',
          },
        },
      });
    },
    down: async (queryInterface, Sequelize) => {
      await queryInterface.dropTable('Activities');
    }
  };