const mongoose = require('mongoose');

const warehouseSchema = new mongoose.Schema(
  {
    warehouseCode: {
      type: String,
      required: true,
      trim: true,
    },
    warehouseName: {
      type: String,
      required: true,
      trim: true,
    },
    warehouseLocation: {
      type: String,
      required: true,
      trim: true,
    },
  },
  { timestamps: true }
);

module.exports = mongoose.model('Warehouse', warehouseSchema);
