const mongoose = require('mongoose')

const supplierSchema= new mongoose.Schema({
    supplierName:{
        type:String,
        required:true,
        trim:true
    },
    address:{
        type:String,
        required:true,
        trim:true
    },
    telephone:{
        type:String,
        required:true,
        trim:true
    },
    registrationDate:{
        type:Date,
        default:Date.now()
    }
})

module.exports=mongoose.model('Supplier',supplierSchema)