text: module.exports = {
      up: (queryInterface, Sequelize) => {
          return queryInterface.createTable('orders', {
              id: {
                  type: Sequelize.INTEGER,
                  allowNull: false,
                  autoIncrement: true,
                  primaryKey: true,
              },
              recipient_id: {
                  type: Sequelize.INTEGER,
                  references: { model: 'recipients', key: 'id' },
                  onUpdate: 'CASCADE',
                  onDelete: 'SET NULL',
                  allowNull: true,
              },
              deliveryman_id: {
                  type: Sequelize.INTEGER,
                  references: { model: 'deliverymans', key: 'id' },
                  onUpdate: 'CASCADE',
                  onDelete: 'SET NULL',
                  allowNull: true,
              },
              signature_id: {
                  type: Sequelize.INTEGER,
                  onUpdate: 'CASCADE',
                  references: { model: 'files', key: 'id' },
                  onDelete: 'SET NULL',
                  allowNull: true,
              },
              product: {
                  type: Sequelize.STRING,
                  allowNull: false,
              },
              start_date: {
                  type: Sequelize.DATE,
                  allowNull: true,
              },
              end_date: {
                  type: Sequelize.DATE,
                  allowNull: true,
              },
              created_at: {
                  type: Sequelize.DATE,
                  allowNull: false,
              },
              updated_at: {
                  type: Sequelize.DATE,
                  allowNull: false,
              },
              canceled_at: {
                  type: Sequelize.DATE,
                  allowNull: true,
              },
          });
      },
  
      down: queryInterface => {
          return queryInterface.dropTable('orders');
      },
  };
  