import { ObjectId } from 'mongodb'; import { BaseModel } from './baseModel'; import { Customer } from './customer'; import { Attachment } from './attachment'; export interface CustomerUser extends BaseModel { status: boolean; name: string; mobile?: string; email?: string; aadharNumber?: string; aadharImage?: string; customerAppLoginURL?: string; accounts?: CustomerUserAccount[]; selfCustomer?: Customer | ObjectId; attachments?: Attachment[]; user?: string; linkedRealmUser?: string; } export interface CustomerUserAccount extends BaseModel { customerUser: CustomerUser | ObjectId; customer: Customer | ObjectId; permissions: string[]; }