text: "use strict";
  // e esses devem ter o nome do destinatário e campos de endereço: rua, número, complemento, estado, cidade e CEP.
  module.exports = {
    up: (queryInterface, Sequelize) => {
      return queryInterface.createTable("recipients", {
        id: {
          type: Sequelize.INTEGER,
          allowNull: false,
          autoIncrement: true,
          primaryKey: true
        },
        name: {
          type: Sequelize.STRING,
          allowNull: false
        },
        street: {
          type: Sequelize.STRING,
          allowNull: false
        },
        number: {
          type: Sequelize.INTEGER,
          allowNull: false
        },
        state: {
          type: Sequelize.STRING,
          allowNull: false
        },
        city: {
          type: Sequelize.STRING,
          allowNull: false
        },
        zip_code: {
          type: Sequelize.STRING,
          allowNull: false
        },
        additional_address: {
          type: Sequelize.STRING
        },
        created_at: {
          type: Sequelize.DATE,
          allowNull: false
        },
        updated_at: {
          type: Sequelize.DATE,
          allowNull: false
        }
      });
    },
  
    down: (queryInterface, Sequelize) => {
      return queryInterface.dropTable("recipients");
    }
  };
  