text: export default {
    up: (queryInterface, Sequelize) =>
      queryInterface.createTable('UserTasks', {
        id: {
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
          type: Sequelize.INTEGER,
        },
        userId: {
          allowNull: false,
          type: Sequelize.INTEGER,
          field: 'user_id',
        },
        taskId: {
          allowNull: false,
          type: Sequelize.INTEGER,
          field: 'task_id',
          onDelete: 'CASCADE',
        },
        completed: {
          type: Sequelize.BOOLEAN,
          allowNull: false,
          defaultValue: false,
        },
        createdAt: {
          allowNull: false,
          type: Sequelize.DATE,
          field: 'created_at',
        },
        updatedAt: {
          allowNull: false,
          type: Sequelize.DATE,
          field: 'updated_at',
        },
      }),
    down: queryInterface => queryInterface.dropTable('UserTasks'),
  };
  