import type { Schema as SchemaType } from 'mongoose' ; import { Schema } from './mongooseCommon' ; const ContactsSchema = new Schema ( { phones : [ String ] , email : { type : String , required : true , } , skype : String , locationId : Schema . Types . ObjectId , } ) ; export default ContactsSchema ;