import mongoose from 'mongoose';

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

export default mongoose.model('Warehouse', warehouseSchema);
