text: 'use strict';
  module.exports = {
      up: (queryInterface, Sequelize) => {
          return queryInterface.createTable('orders', {
              id: {
                  allowNull: false,
                  autoIncrement: true,
                  primaryKey: true,
                  type: Sequelize.INTEGER,
              },
              // productId: {
              //     type: Sequelize.INTEGER,
              //     allowNull: false,
              //     refernece: {
              //         model: 'products',
              //         key: 'id',
              //     },
              // },
              customerId: {
                  type: Sequelize.INTEGER,
                  allowNull: false,
                  references: {
                      model: 'customers',
                      key: 'id',
                  },
              },
              quntity: {
                  type: Sequelize.STRING,
              },
              createdAt: {
                  allowNull: false,
                  type: Sequelize.DATE,
              },
              updatedAt: {
                  allowNull: false,
                  type: Sequelize.DATE,
              },
          });
      },
      down: (queryInterface, Sequelize) => {
          return queryInterface.dropTable('orders');
      },
  };