diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index 23d04b1862..952fdacbb5 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -15,7 +15,7 @@ // // To help typescript locate view plugin properly -import type { Contact } from '@anticrm/contact' +import type { Contact, Employee } from '@anticrm/contact' import type { Doc, FindOptions, Ref } from '@anticrm/core' import type { Funnel, Lead } from '@anticrm/lead' import { createKanban } from '@anticrm/lead' @@ -49,6 +49,9 @@ export class TLead extends TTask implements Lead { @Prop(Collection(attachment.class.Attachment), 'Attachments' as IntlString) attachments?: number + + @Prop(TypeRef(contact.class.Employee), 'Assignee' as IntlString) + declare assignee: Ref | null } export function createModel (builder: Builder): void {