From 2a06e698ae35c8a8cbe9378223d871e8d81993fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=B3=E6=98=8C?= Date: Fri, 20 Mar 2020 16:45:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(schemas):=20Task=20=E5=92=8C=20Project=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20openId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schemas/Project.ts | 4 ++++ src/schemas/Task.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/schemas/Project.ts b/src/schemas/Project.ts index 53c7fe1cc..550754584 100644 --- a/src/schemas/Project.ts +++ b/src/schemas/Project.ts @@ -56,6 +56,7 @@ export interface ProjectSchema { memberIdentityIds?: MemberIdentityId[] membersCount: number name: string + openId?: string organization?: Pick = { name: { type: RDBType.STRING }, + openId: { + type: RDBType.STRING + }, orgLevel: { type: RDBType.NUMBER }, diff --git a/src/schemas/Task.ts b/src/schemas/Task.ts index 1e9bb6a2d..821ed6a61 100644 --- a/src/schemas/Task.ts +++ b/src/schemas/Task.ts @@ -70,6 +70,7 @@ export interface TaskSchema { attachmentsCount: number likesCount: number objectlinksCount: number + openId?: string shareStatus: number reminder: Reminder subtaskCount: { @@ -230,6 +231,9 @@ const schema: SchemaDef = { objectType: { type: RDBType.STRING }, + openId: { + type: RDBType.STRING + }, parent: { type: Relationship.oneToOne, virtual: {