const mongoose = require('mongoose');

const adminuserScheme = new mongoose.Schema({
	logisticUser_id:{
		type:Object
	},
	name: { type: String },
	username: { type: String },
    phoneNo: {
      type: Number,
      unique: true,
	  sparse: true,
    },
	email: {        
		type: String,      
		require: true
	},
	password: {
		type: String,
		require: true
	},
	warehouse: {
		type: String
	},
	warehouseId: {
		type: String
	},
	created_on: {
		type: Date
	},
	updatedOn: {
		type: Date
	},
	category: {
		type: String,
		// default: "admin"
	},
	
});


module.exports = mongoose.model('Adminuser', adminuserScheme)