text: 'use strict';
  module.exports = {
    up: async (queryInterface, Sequelize) => {
      await queryInterface.createTable('Vehicles', {
        id: {
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
          type: Sequelize.INTEGER
        },
        board: {
          allowNull: false,
          type: Sequelize.STRING,
          unique: true
        },
        chassis: {
          type: Sequelize.STRING,
          unique: true
        },
        renavam: {
          type: Sequelize.STRING,
          unique: true
        },
        model: {
          type: Sequelize.STRING
        },
        brand: {
          type: Sequelize.STRING
        },
        year: {
          type: Sequelize.INTEGER
        },
        createdAt: {
          allowNull: false,
          type: Sequelize.DATE
        },
        updatedAt: {
          allowNull: false,
          type: Sequelize.DATE
        }
      });
    },
    down: async (queryInterface, Sequelize) => {
      await queryInterface.dropTable('Vehicles');
    }
  };
  