text: 'use strict';
  module.exports = {
    up: async (queryInterface, DataTypes) => {
      await queryInterface.createTable('stocktype', {
        id: {
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
          type: DataTypes.INTEGER
        },
        uuid: {
          type: DataTypes.UUID,
          defaultValue: DataTypes.UUIDV4
        },
        name: {
          type: DataTypes.STRING,
          allowNull: false
        },
        createdAt: {
          allowNull: false,
          type: DataTypes.DATE
        },
        updatedAt: {
          allowNull: false,
          type: DataTypes.DATE
        }
      });
    },
    down: async (queryInterface, DataTypes) => {
      await queryInterface.dropTable('stocktype');
    }
  };