text: const uuid = require('uuid');
  'use strict';
  module.exports = {
    up: (queryInterface, Sequelize) => {
      return queryInterface.createTable('terms', {
        id: {
          allowNull: false,
          primaryKey: true,
          type: Sequelize.UUID,
          defaultValue: uuid()
        },
        session_id: {
          type: Sequelize.UUID,
          allowNull: false,
          references: {
            model: 'sessions',
            key: 'id'
          }
        },
        term: {
          type: Sequelize.ENUM('first', 'second', 'third'),
          allowNull: false,
        },
        createdAt: {
          allowNull: false,
          type: Sequelize.DATE
        },
        updatedAt: {
          allowNull: false,
          type: Sequelize.DATE
        }
      });
    },
    down: (queryInterface, Sequelize) => {
      return queryInterface.dropTable('terms');
    }
  };
  