contact

accountExist: [userID: ObjectID]

nameFamily : String,

nameGiven : String,

profilePicture : String

occupation : String

email: String

phoneNumber: Number

addSince: Date

meetRecord: [recordInfo: objectID]

note: String

// mongodb schema
const mongoose = require('mongoose')

// create mongoose schema
const contactSchema = new mongoose.Schema({
	LastName: {type: String, required: true},
	firstName: {type: String, required: true},
	portriat: {
		data: buffer,
		contentType: String
	},
	email: {type: Array, required: true}, // only display one record for thumbnails 
	phone: {type: Array, required: true}, // only display one record for thumbnails
	meetRecord: {type: Array, required: true},
  occupation: {type: String, required: true},
  addDate: {type: Date, required: true},
	note: ,// unsure type, we also need to handle the image or attachments
	status: {type: Boolean, required: true}
})

const Contact = mongoose.model('Contacts', userSchema)

module.exports = Contact