const mongoose = require('mongoose');


const userSchema = new mongoose.Schema({
   
    phone: {
        type: String, // You can use String for phone numbers
        required: false, // Make it required if it's mandatory
    },
    country: {
        type: String, // You can use String for phone numbers
        required: false, // Make it required if it's mandatory
    },
    companyName: {
        type: String, // You can use String for phone numbers
        required: false, // Make it required if it's mandatory
    },
    companyLocation: {
        type: String, // You can use String for phone numbers
        required: false, // Make it required if it's mandatory
    },
    
    AllowedUsers: {
        type: Number, // You can use String for phone numbers
        required: false, 
        default:0
    },
    createdAt: {
        type: Date,
        default: Date.now,
    },
});

const User = mongoose.model('Company', userSchema);
module.exports = User;
