Skip to content

Commit

Permalink
Merge pull request #716 from teambition/feature/aone-source
Browse files Browse the repository at this point in the history
feat(schemas): Task 和 Project 增加 openId
  • Loading branch information
chuan6 committed Apr 16, 2020
2 parents 2ea1a8c + 2a06e69 commit 72c2872
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/schemas/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export interface ProjectSchema {
memberIdentityIds?: MemberIdentityId[]
membersCount: number
name: string
openId?: string
organization?: Pick<OrganizationSchema,
| '_id'
| 'description'
Expand Down Expand Up @@ -220,6 +221,9 @@ const Schema: SchemaDef<ProjectSchema> = {
name: {
type: RDBType.STRING
},
openId: {
type: RDBType.STRING
},
orgLevel: {
type: RDBType.NUMBER
},
Expand Down
4 changes: 4 additions & 0 deletions src/schemas/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export interface TaskSchema {
attachmentsCount: number
likesCount: number
objectlinksCount: number
openId?: string
shareStatus: number
reminder: Reminder
subtaskCount: {
Expand Down Expand Up @@ -230,6 +231,9 @@ const schema: SchemaDef<TaskSchema> = {
objectType: {
type: RDBType.STRING
},
openId: {
type: RDBType.STRING
},
parent: {
type: Relationship.oneToOne,
virtual: {
Expand Down

0 comments on commit 72c2872

Please sign in to comment.