'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.addColumn('webrtc_connections', 'reconnect_deadline', {
      type: Sequelize.DATE,
      allowNull: true,
      comment: 'Browser can reconnect before this deadline to restore session',
    });
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.removeColumn('webrtc_connections', 'reconnect_deadline');
  },
};
