text: module.exports = {
    up: (queryInterface, Sequelize) => {
      return queryInterface.createTable('help_orders', {
        id: {
          type: Sequelize.INTEGER,
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
        },
        student_id: {
          type: Sequelize.INTEGER,
          references: { model: 'students', key: 'id' },
          onUpdate: 'CASCADE',
          onDelete: 'SET NULL',
          allowNull: false,
        },
        question: {
          type: Sequelize.TEXT,
          allowNull: false,
        },
        answer: {
          type: Sequelize.TEXT,
          allowNull: true,
        },
        answer_at: {
          type: Sequelize.DATE,
          allowNull: true,
        },
        created_at: Sequelize.DATE,
        updated_at: Sequelize.DATE,
      });
    },
  
    down: queryInterface => {
      return queryInterface.dropTable('help_orders');
    },
  };
  