Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-02-08 10:02:35 +01:00
committed by GitHub
parent bff122ee8c
commit 9c278d46e4
16 changed files with 185 additions and 64 deletions
+4 -2
View File
@@ -14,8 +14,8 @@
//
import type { IntlString } from '@anticrm/platform'
import { Builder, Model, Prop, UX, TypeString, TypeTimestamp } from '@anticrm/model'
import type { Domain } from '@anticrm/core'
import { Builder, Model, Prop, UX, TypeString, TypeTimestamp, Index } from '@anticrm/model'
import { Domain, IndexKind } from '@anticrm/core'
import core, { TAttachedDoc } from '@anticrm/model-core'
import type { Attachment, Photo } from '@anticrm/attachment'
import activity from '@anticrm/activity'
@@ -31,6 +31,7 @@ export const DOMAIN_ATTACHMENT = 'attachment' as Domain
@UX('File' as IntlString)
export class TAttachment extends TAttachedDoc implements Attachment {
@Prop(TypeString(), 'Name' as IntlString)
@Index(IndexKind.FullText)
name!: string
@Prop(TypeString(), 'File' as IntlString)
@@ -40,6 +41,7 @@ export class TAttachment extends TAttachedDoc implements Attachment {
size!: number
@Prop(TypeString(), 'Type' as IntlString)
@Index(IndexKind.FullText)
type!: string
@Prop(TypeTimestamp(), 'Date' as IntlString)