import mongoose from 'mongoose'

const shipmentSchema = new mongoose.Schema({
    shipmentNumber: { type: String, required: true, unique: true },
    shipmentDate: { type: Date, required: true },
    shipmentStatus: { type: String, required: true },
    destination: { type: String, required: true },
    supplier: { type: mongoose.Schema.Types.ObjectId, ref: "Supplier", required: true }
}, { timestamps: true });

export default mongoose.model("Shipment", shipmentSchema);