import mongoose from 'mongoose'

const supplierSchema = new mongoose.Schema({
    supplierCode: { type: String, required: true, unique: true },
    supplierName: { type: String, required: true },
    telephone: { type: String, required: true },
    address: { type: String, required: true },
    email: { type: String, required: true }
}, { timestamps: true });

export default mongoose.model("Supplier", supplierSchema);