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 -3
View File
@@ -13,9 +13,8 @@
// limitations under the License.
//
import type { Account, Arr, Ref, Space } from '@anticrm/core'
import { DOMAIN_MODEL } from '@anticrm/core'
import { Model, Prop, TypeBoolean, TypeString } from '@anticrm/model'
import { Account, Arr, DOMAIN_MODEL, IndexKind, Ref, Space } from '@anticrm/core'
import { Index, Model, Prop, TypeBoolean, TypeString } from '@anticrm/model'
import type { IntlString } from '@anticrm/platform'
import core from './component'
import { TDoc } from './core'
@@ -25,9 +24,11 @@ import { TDoc } from './core'
@Model(core.class.Space, core.class.Doc, DOMAIN_MODEL)
export class TSpace extends TDoc implements Space {
@Prop(TypeString(), 'Name' as IntlString)
@Index(IndexKind.FullText)
name!: string
@Prop(TypeString(), 'Description' as IntlString)
@Index(IndexKind.FullText)
description!: string
@Prop(TypeBoolean(), 'Private' as IntlString)